Minor const-correctness fixes.
authorDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 20:06:06 +0000 (20:06 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 20:06:06 +0000 (20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegisterScavenging.cpp
lib/Target/ARM/ARMAsmPrinter.cpp

index e8329781ac3d7cca5c4b43ec9ac73c9b1db5d439..ba2395a32a96d3695f48f87a94ec4cdc81abf243 100644 (file)
@@ -81,7 +81,7 @@ void RegScavenger::setUnused(unsigned Reg, const MachineInstr *MI) {
 }
 
 void RegScavenger::enterBasicBlock(MachineBasicBlock *mbb) {
-  const MachineFunction &MF = *mbb->getParent();
+  MachineFunction &MF = *mbb->getParent();
   const TargetMachine &TM = MF.getTarget();
   TII = TM.getInstrInfo();
   TRI = TM.getRegisterInfo();
index e850ef1983b0fa004fe5604ef7a0a09aa45f3003..23e5e37cf067a9acb7c79285146ebfc1a636580e 100644 (file)
@@ -694,7 +694,7 @@ void ARMAsmPrinter::printJTBlockOperand(const MachineInstr *MI, int OpNo) {
     JTEntryDirective = TAI->getData32bitsDirective();
 
   const MachineFunction *MF = MI->getParent()->getParent();
-  MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
+  const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
   const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
   const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
   bool UseSet= TAI->getSetDirective() && TM.getRelocationModel() == Reloc::PIC_;