Index: src/IceTargetLoweringX86Base.h |
diff --git a/src/IceTargetLoweringX86Base.h b/src/IceTargetLoweringX86Base.h |
index 7380d561efd372fbd5bcc7af235ae8c4cf8e8137..1b52aad34a81a43838f6d60b3c37a5449ffc72f5 100644 |
--- a/src/IceTargetLoweringX86Base.h |
+++ b/src/IceTargetLoweringX86Base.h |
@@ -83,6 +83,7 @@ public: |
} |
bool hasFramePointer() const override { return IsEbpBasedFrame; } |
+ void setHasFramePointer() override { IsEbpBasedFrame = true; } |
SizeT getStackReg() const override { return Traits::RegisterSet::Reg_esp; } |
SizeT getFrameOrStackReg() const override { |
return IsEbpBasedFrame ? Traits::RegisterSet::Reg_ebp |
@@ -93,6 +94,9 @@ public: |
const uint32_t WordSizeInBytes = typeWidthInBytes(Traits::WordType); |
return Utils::applyAlignment(typeWidthInBytes(Ty), WordSizeInBytes); |
} |
+ uint32_t getStackAlignment() const override { |
+ return Traits::X86_STACK_ALIGNMENT_BYTES; |
+ } |
bool shouldSplitToVariable64On32(Type Ty) const override { |
return Traits::Is64Bit ? false : Ty == IceType_i64; |