aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-05-06 22:11:29 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-05-06 22:11:29 +0000
commit325e66d81a19f4bfea04c670929d375a9e0235f1 (patch)
tree2fcd7055fc97d961e4540cbb626cb6040a04373b /lib
parentbfb8705d979e910133c8c6637e5a3fa2de6659ee (diff)
downloadexternal_llvm-325e66d81a19f4bfea04c670929d375a9e0235f1.zip
external_llvm-325e66d81a19f4bfea04c670929d375a9e0235f1.tar.gz
external_llvm-325e66d81a19f4bfea04c670929d375a9e0235f1.tar.bz2
1. Keep lines in 80 columns.
2. Remove unused function. 3. Correct indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsEmitGPRestore.cpp10
-rw-r--r--lib/Target/Mips/MipsRegisterInfo.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/Mips/MipsEmitGPRestore.cpp b/lib/Target/Mips/MipsEmitGPRestore.cpp
index dd541e5..5b84ad8 100644
--- a/lib/Target/Mips/MipsEmitGPRestore.cpp
+++ b/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;
}
}
diff --git a/lib/Target/Mips/MipsRegisterInfo.cpp b/lib/Target/Mips/MipsRegisterInfo.cpp
index 0dcd140..afd6b56 100644
--- a/lib/Target/Mips/MipsRegisterInfo.cpp
+++ b/lib/Target/Mips/MipsRegisterInfo.cpp
@@ -186,7 +186,7 @@ eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
unsigned OrigReg = getFrameRegister(MF);
int OrigImm = Offset;
-// OrigImm fits in the 16-bit field
+ // OrigImm fits in the 16-bit field
if (OrigImm < 0x8000 && OrigImm >= -0x8000) {
NewReg = OrigReg;
NewImm = OrigImm;