diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-06-04 18:33:25 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-06-04 18:33:25 +0000 |
commit | a54533ed78779501c38629fabef1a778bdffb69d (patch) | |
tree | 953333f0196b34f35f398f6717612cf0b7313bac /llvm/lib/Target/Sparc/SparcFrameLowering.cpp | |
parent | 990b3861178de4c2ddf697720ff99318a5d1e781 (diff) | |
download | bcm5719-llvm-a54533ed78779501c38629fabef1a778bdffb69d.tar.gz bcm5719-llvm-a54533ed78779501c38629fabef1a778bdffb69d.zip |
Sparc: No functionality change. Cleanup whitespaces, comment formatting etc.,
llvm-svn: 183243
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcFrameLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/SparcFrameLowering.cpp b/llvm/lib/Target/Sparc/SparcFrameLowering.cpp index 09e21edcce2..7e91bc38d42 100644 --- a/llvm/lib/Target/Sparc/SparcFrameLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcFrameLowering.cpp @@ -130,7 +130,7 @@ void SparcFrameLowering::emitEpilogue(MachineFunction &MF, } bool SparcFrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { - //Reserve call frame if there are no variable sized objects on the stack + // Reserve call frame if there are no variable sized objects on the stack. return !MF.getFrameInfo()->hasVarSizedObjects(); } @@ -174,17 +174,17 @@ void SparcFrameLowering::remapRegsForLeafProc(MachineFunction &MF) const { MachineRegisterInfo &MRI = MF.getRegInfo(); - //remap %i[0-7] to %o[0-7] + // Remap %i[0-7] to %o[0-7]. for (unsigned reg = SP::I0; reg <= SP::I7; ++reg) { if (!MRI.isPhysRegUsed(reg)) continue; unsigned mapped_reg = (reg - SP::I0 + SP::O0); assert(!MRI.isPhysRegUsed(mapped_reg)); - //Replace I register with O register + // Replace I register with O register. MRI.replaceRegWith(reg, mapped_reg); - //mark the reg unused. + // Mark the reg unused. MRI.setPhysRegUnused(reg); } |