aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 20:48:54 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 20:48:54 +0000
commit8c64b9766e654079339ea7f3a2da152f18d00179 (patch)
treed62766e7cee631cf10aa71a3322e6aa26bb5b0fc /lib/CodeGen
parentfee12b29851983ab536d46ed0fe85bddd665638a (diff)
downloadexternal_llvm-8c64b9766e654079339ea7f3a2da152f18d00179.zip
external_llvm-8c64b9766e654079339ea7f3a2da152f18d00179.tar.gz
external_llvm-8c64b9766e654079339ea7f3a2da152f18d00179.tar.bz2
Add hook to insert late LLVM=>LLVM passes just before isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index fd10241..98d49ad 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -307,6 +307,8 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
PM.add(createStackProtectorPass(getTargetLowering()));
+ addPreISel(PM, OptLevel);
+
if (PrintISelInput)
PM.add(createPrintFunctionPass("\n\n"
"*** Final LLVM Code input to ISel ***\n",