1. Keep lines in 80 columns.
authorAkira Hatanaka <ahatanak@gmail.com>
Fri, 6 May 2011 22:11:29 +0000 (22:11 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Fri, 6 May 2011 22:11:29 +0000 (22:11 +0000)
2. Remove unused function.
3. Correct indentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131028 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CompilerDriver.html
lib/Target/Mips/MipsEmitGPRestore.cpp
lib/Target/Mips/MipsRegisterInfo.cpp

index f9782d32616efcca8f75407d6e1a6c704bdb53d4..0f5d3592a259ff31120d9330c770258902e80642 100644 (file)
@@ -679,7 +679,7 @@ the <tt class="docutils literal">llvmc</tt> program behaves when it needs to cho
 <a href="mailto:foldr@codedgers.com">Mikhail Glushenkov</a><br />
 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br />
 
-Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $
+Last modified: $Date$
 </address></div>
 </div>
 </div>
index dd541e5d6268076a51a3bea9706f64d04998322c..5b84ad8ffe80fb8d0af3062f20456a4363e6dbba 100644 (file)
@@ -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;
     }
   } 
index 0dcd140fdc781d7c450ccaa023ab99d98dde86b6..afd6b5662b169d9e80b0efa57d76b84658e60ab9 100644 (file)
@@ -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;