createMipsDelaySlotFillerPass added to mips codegen runtime
llvm-svn: 41154
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
index 7fdba30..95db824 100644
--- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
@@ -64,11 +64,11 @@
// 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