IPO: Const correctness for summaries passed into passes.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Mar 2017 18:22:59 +0000 (18:22 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Mar 2017 18:22:59 +0000 (18:22 +0000)
commitf7691d8b410dc4ccb4eacb4bf9151f3ee91fd7fe
treedc407941b6c9b1227aa5c03741f871bcf6ed7d01
parentbdc8bc047d48b7f2e9bfc7eb057df99056e95391
IPO: Const correctness for summaries passed into passes.

Pass const qualified summaries into importers and unqualified summaries into
exporters. This lets us const-qualify the summary argument to thinBackend.

Differential Revision: https://reviews.llvm.org/D31230

llvm-svn: 298534
llvm/include/llvm/LTO/LTOBackend.h
llvm/include/llvm/Transforms/IPO.h
llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp