aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-04-07 18:18:42 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-04-07 18:18:42 +0000
commitf4c97dfd87d6514e7976bafa07b55aee3e3a81b5 (patch)
tree5a793ff4cf74d0c9f1683209d4a2d53defc2329e /lib
parent67825e3b8bfb36b3e3b9a273b644a99dec1f227b (diff)
downloadexternal_llvm-f4c97dfd87d6514e7976bafa07b55aee3e3a81b5.zip
external_llvm-f4c97dfd87d6514e7976bafa07b55aee3e3a81b5.tar.gz
external_llvm-f4c97dfd87d6514e7976bafa07b55aee3e3a81b5.tar.bz2
Add hook to insert late LLVM=>LLVM passes just before isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 ced6664..714ad73 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -268,6 +268,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",