- Track which callee-saved registers are spilled.
[oota-llvm.git] / lib / Target / ARM / ARMConstantIslandPass.cpp
index 23c87e34d08828da12daa1b4c5a65e00d583c7fa..27e6cc08a3934b028ba537314cc45a46c24f01c3 100644 (file)
@@ -213,7 +213,7 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &Fn) {
   
   // If LR has been forced spilled and no far jumps (i.e. BL) has been issued.
   // Undo the spill / restore of LR if possible.
-  if (!HasFarJump && AFI->isLRForceSpilled() && isThumb)
+  if (!HasFarJump && AFI->isLRSpilledForFarJump() && isThumb)
     MadeChange |= UndoLRSpillRestore();
 
   BBSizes.clear();