diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-15 21:19:05 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-15 21:19:05 +0000 |
commit | 702adaba6d7442f180c6bc0bec3a2b19e1169ed9 (patch) | |
tree | 469b3918ad02587111e77ddcf306ea731e812726 /lib/Target/MSP430/MSP430TargetMachine.cpp | |
parent | 05011a8aba3a4e8f011ac92990423947f8cbb15b (diff) | |
download | external_llvm-702adaba6d7442f180c6bc0bec3a2b19e1169ed9.zip external_llvm-702adaba6d7442f180c6bc0bec3a2b19e1169ed9.tar.gz external_llvm-702adaba6d7442f180c6bc0bec3a2b19e1169ed9.tar.bz2 |
Add branch relaxation pass (shamelessly stolen from PPC).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430TargetMachine.cpp')
-rw-r--r-- | lib/Target/MSP430/MSP430TargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430TargetMachine.cpp b/lib/Target/MSP430/MSP430TargetMachine.cpp index 14db406..a0dbac2 100644 --- a/lib/Target/MSP430/MSP430TargetMachine.cpp +++ b/lib/Target/MSP430/MSP430TargetMachine.cpp @@ -44,3 +44,9 @@ bool MSP430TargetMachine::addInstSelector(PassManagerBase &PM, return false; } +bool MSP430TargetMachine::addPreEmitPass(PassManagerBase &PM, + CodeGenOpt::Level OptLevel) { + // Must run branch selection immediately preceding the asm printer. + PM.add(createMSP430BranchSelectionPass()); + return false; +} |