aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2007-08-18 01:58:15 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2007-08-18 01:58:15 +0000
commitaff42dcf5d221bf2e94f209a2ef8b548cbbb9aeb (patch)
tree878cce804e20c0f8f78f14438c56a2596834a28b
parent35d2a47994af0694b4301bcfdf9cf8bbd726b487 (diff)
createMipsDelaySlotFillerPass added to mips codegen runtime
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41154 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Mips/MipsTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp
index 7fdba30bd2..95db8242c7 100644
--- a/lib/Target/Mips/MipsTargetMachine.cpp
+++ b/lib/Target/Mips/MipsTargetMachine.cpp
@@ -64,11 +64,11 @@ addInstSelector(FunctionPassManager &PM, bool Fast)
// Implemented by targets that want to run passes immediately before
// machine code is emitted. return true if -print-machineinstrs should
// print out the code after the passes.
-// TODO: Delay slot must be implemented here.
bool MipsTargetMachine::
addPreEmitPass(FunctionPassManager &PM, bool Fast)
{
- return false;
+ PM.add(createMipsDelaySlotFillerPass(*this));
+ return true;
}
// Implements the AssemblyEmitter for the target. Must return