[PM] Remove the old 'PassManager.h' header file at the top level of
authorChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 10:01:29 +0000 (10:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 10:01:29 +0000 (10:01 +0000)
commit417c5c172ce0d56105112481b1bcf0bc2fc011c2
tree92e209228353562d3b4ee088500f78085a3120e1
parent09c9b6f0c4300abb93b243d65df0976b9657b713
[PM] Remove the old 'PassManager.h' header file at the top level of
LLVM's include tree and the use of using declarations to hide the
'legacy' namespace for the old pass manager.

This undoes the primary modules-hostile change I made to keep
out-of-tree targets building. I sent an email inquiring about whether
this would be reasonable to do at this phase and people seemed fine with
it, so making it a reality. This should allow us to start bootstrapping
with modules to a certain extent along with making it easier to mix and
match headers in general.

The updates to any code for users of LLVM are very mechanical. Switch
from including "llvm/PassManager.h" to "llvm/IR/LegacyPassManager.h".
Qualify the types which now produce compile errors with "legacy::". The
most common ones are "PassManager", "PassManagerBase", and
"FunctionPassManager".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229094 91177308-0d34-0410-b5e6-96231b3b80d8
65 files changed:
bindings/go/llvm/InstrumentationBindings.cpp
examples/ExceptionDemo/ExceptionDemo.cpp
examples/Kaleidoscope/Chapter4/toy.cpp
examples/Kaleidoscope/Chapter5/toy.cpp
examples/Kaleidoscope/Chapter6/toy.cpp
examples/Kaleidoscope/Chapter7/toy.cpp
examples/Kaleidoscope/Chapter8/toy.cpp
examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp
examples/Kaleidoscope/MCJIT/cached/toy.cpp
examples/Kaleidoscope/MCJIT/complete/toy.cpp
examples/Kaleidoscope/MCJIT/initial/toy.cpp
examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp
examples/Kaleidoscope/MCJIT/lazy/toy.cpp
examples/Kaleidoscope/Orc/initial/toy.cpp
examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
include/llvm/ExecutionEngine/Orc/CompileUtils.h
include/llvm/PassManager.h [deleted file]
include/llvm/Transforms/IPO/PassManagerBuilder.h
include/llvm/module.modulemap
lib/Analysis/Lint.cpp
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/Passes.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/IR/Core.cpp
lib/LTO/LTOCodeGenerator.cpp
lib/Target/AArch64/AArch64TargetMachine.cpp
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/BPF/BPFTargetMachine.cpp
lib/Target/CppBackend/CPPBackend.cpp
lib/Target/Hexagon/HexagonTargetMachine.cpp
lib/Target/MSP430/MSP430TargetMachine.cpp
lib/Target/Mips/MipsTargetMachine.cpp
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
lib/Target/NVPTX/NVPTXTargetMachine.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp
lib/Target/R600/AMDGPUTargetMachine.cpp
lib/Target/R600/R600MachineScheduler.cpp
lib/Target/Sparc/SparcTargetMachine.cpp
lib/Target/Target.cpp
lib/Target/TargetMachine.cpp
lib/Target/TargetMachineC.cpp
lib/Target/X86/X86TargetMachine.cpp
lib/Target/XCore/XCoreTargetMachine.cpp
lib/Transforms/IPO/IPO.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp
lib/Transforms/Scalar/PlaceSafepoints.cpp
lib/Transforms/Scalar/Scalar.cpp
lib/Transforms/Utils/SymbolRewriter.cpp
lib/Transforms/Vectorize/Vectorize.cpp
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ExtractFunction.cpp
tools/bugpoint/OptimizerDriver.cpp
tools/bugpoint/bugpoint.cpp
tools/gold/gold-plugin.cpp
tools/llc/llc.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-stress/llvm-stress.cpp
tools/opt/opt.cpp
unittests/Analysis/CFGTest.cpp
unittests/Analysis/MixedTBAATest.cpp
unittests/Analysis/ScalarEvolutionTest.cpp
unittests/IR/DominatorTreeTest.cpp
unittests/IR/LegacyPassManagerTest.cpp