[llvm-commits] [llvm] r131028 - in /llvm/trunk: docs/CompilerDriver.html lib/Target/Mips/MipsEmitGPRestore.cpp lib/Target/Mips/MipsRegisterInfo.cpp

Akira Hatanaka ahatanak at gmail.com
Fri May 6 15:11:29 PDT 2011


Author: ahatanak
Date: Fri May  6 17:11:29 2011
New Revision: 131028

URL: http://llvm.org/viewvc/llvm-project?rev=131028&view=rev
Log:
1. Keep lines in 80 columns.
2. Remove unused function.
3. Correct indentation.

Modified:
    llvm/trunk/docs/CompilerDriver.html
    llvm/trunk/lib/Target/Mips/MipsEmitGPRestore.cpp
    llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp

Modified: llvm/trunk/docs/CompilerDriver.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CompilerDriver.html?rev=131028&r1=131027&r2=131028&view=diff
==============================================================================
--- llvm/trunk/docs/CompilerDriver.html (original)
+++ llvm/trunk/docs/CompilerDriver.html Fri May  6 17:11:29 2011
@@ -679,7 +679,7 @@
 <a href="mailto:foldr at 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>

Modified: llvm/trunk/lib/Target/Mips/MipsEmitGPRestore.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsEmitGPRestore.cpp?rev=131028&r1=131027&r2=131028&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsEmitGPRestore.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsEmitGPRestore.cpp Fri May  6 17:11:29 2011
@@ -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 @@
       return "Mips Emit GP Restore";
     }
 
-    bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
     bool runOnMachineFunction(MachineFunction &F);
   };
   char Inserter::ID = 0;
@@ -64,7 +63,8 @@
 
       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;
     }
   } 

Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp?rev=131028&r1=131027&r2=131028&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp Fri May  6 17:11:29 2011
@@ -186,7 +186,7 @@
   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;





More information about the llvm-commits mailing list