diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 23:33:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 23:33:38 +0000 |
commit | f4db3a51c7d806f7dcef5d9625e7cdf7f122dca9 (patch) | |
tree | 81dbaa0fce182c01c6fa0c916f24dc0773c3e34b /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 040225fcb7e16ad7485dec9ccd23f178297a8a61 (diff) | |
download | external_llvm-f4db3a51c7d806f7dcef5d9625e7cdf7f122dca9.zip external_llvm-f4db3a51c7d806f7dcef5d9625e7cdf7f122dca9.tar.gz external_llvm-f4db3a51c7d806f7dcef5d9625e7cdf7f122dca9.tar.bz2 |
Privatize PrintModulePass and PrintFunctionPass and add
createPrintModulePass and createPrintFunctionPass.
- So clients who compile w/o RTTI can use them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 333b8ab..bc3c991 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -151,7 +151,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) { if (!Fast) { PM.add(createLoopStrengthReducePass(getTargetLowering())); if (PrintLSR) - PM.add(new PrintFunctionPass("\n\n*** Code after LSR ***\n", &cerr)); + PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &cerr)); } PM.add(createGCLoweringPass()); @@ -166,8 +166,9 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) { PM.add(createCodeGenPreparePass(getTargetLowering())); if (PrintISelInput) - PM.add(new PrintFunctionPass("\n\n*** Final LLVM Code input to ISel ***\n", - &cerr)); + PM.add(createPrintFunctionPass("\n\n" + "*** Final LLVM Code input to ISel ***\n", + &cerr)); // Standard Lower-Level Passes. |