summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsEmitGPRestore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Mips/MipsEmitGPRestore.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsEmitGPRestore.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/Mips/MipsEmitGPRestore.cpp b/llvm/lib/Target/Mips/MipsEmitGPRestore.cpp
index dd541e5d626..5b84ad8ffe8 100644
--- a/llvm/lib/Target/Mips/MipsEmitGPRestore.cpp
+++ b/llvm/lib/Target/Mips/MipsEmitGPRestore.cpp
@@ -1,16 +1,16 @@
-//===-- MipsEmitGPRestore.cpp - Emit GP restore instruction-----------------===//
+//===-- MipsEmitGPRestore.cpp - Emit GP restore instruction----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
-//===-----------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
//
// This pass emits instructions that restore $gp right
// after jalr instructions.
//
-//===-----------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "emit-gp-restore"
@@ -38,7 +38,6 @@ namespace {
return "Mips Emit GP Restore";
}
- bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
bool runOnMachineFunction(MachineFunction &F);
};
char Inserter::ID = 0;
@@ -64,7 +63,8 @@ bool Inserter::runOnMachineFunction(MachineFunction &F) {
DebugLoc dl = I->getDebugLoc();
// emit lw $gp, ($gp save slot on stack) after jalr
- BuildMI(MBB, ++I, dl, TII->get(Mips::LW), Mips::GP).addImm(0).addFrameIndex(FI);
+ BuildMI(MBB, ++I, dl, TII->get(Mips::LW), Mips::GP).addImm(0)
+ .addFrameIndex(FI);
Changed = true;
}
}
OpenPOWER on IntegriCloud