Skip to content

Commit

Permalink
1. Keep lines in 80 columns.
Browse files Browse the repository at this point in the history
2. Remove unused function.
3. Correct indentation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131028 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ahatanak committed May 6, 2011
1 parent bfb8705 commit 325e66d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/CompilerDriver.html
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ <h2><a class="toc-backref" href="#id21">Conditioning on the executable name</a><
<a href="mailto:[email protected]">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>
Expand Down
10 changes: 5 additions & 5 deletions lib/Target/Mips/MipsEmitGPRestore.cpp
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -38,7 +38,6 @@ namespace {
return "Mips Emit GP Restore";
}

bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
bool runOnMachineFunction(MachineFunction &F);
};
char Inserter::ID = 0;
Expand All @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/Mips/MipsRegisterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 325e66d

Please sign in to comment.