Clean up ARM subtarget code by using Triple ADT.
[oota-llvm.git] / lib / Target / ARM / ARMFrameLowering.cpp
index 824538ccd79dd4cf8ded64dc7014ea50b5d02c11..efffe06717913865cc4e108c1a08a97d111de741 100644 (file)
@@ -14,6 +14,7 @@
 #include "ARMFrameLowering.h"
 #include "ARMAddressingModes.h"
 #include "ARMBaseInstrInfo.h"
+#include "ARMBaseRegisterInfo.h"
 #include "ARMMachineFunctionInfo.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
@@ -288,7 +289,8 @@ void ARMFrameLowering::emitPrologue(MachineFunction &MF) const {
   }
 
   // If the frame has variable sized objects then the epilogue must restore
-  // the sp from fp.
+  // the sp from fp. We can assume there's an FP here since hasFP already
+  // checks for hasVarSizedObjects.
   if (MFI->hasVarSizedObjects())
     AFI->setShouldRestoreSPFromFP(true);
 }