Index: lib/Target/ARM/ARMConstantIslandPass.cpp |
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp |
index 29405eb65d52757aaa14541ef4adac4d2637e6f3..f1fb9630ad8073a0ce4eb033d6689a2b56b7bae1 100644 |
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp |
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp |
@@ -389,6 +389,8 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &mf) { |
AFI = MF->getInfo<ARMFunctionInfo>(); |
STI = &MF->getTarget().getSubtarget<ARMSubtarget>(); |
+ if (!STI->useConstIslands()) return false; // @LOCALMOD |
+ |
isThumb = AFI->isThumbFunction(); |
isThumb1 = AFI->isThumb1OnlyFunction(); |
isThumb2 = AFI->isThumb2Function(); |