Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index 756508ec4d7ccc17dc011d67a86bbb0cb2c50e2c..f1437fd8678f833cee8dc69b45342f15a73c32db 100644 |
--- a/src/IceTargetLoweringX8632.cpp |
+++ b/src/IceTargetLoweringX8632.cpp |
@@ -513,6 +513,14 @@ void TargetX8632::emitVariable(const Variable *Var, const Cfg *Func) const { |
Str << "]"; |
} |
+x86::Address TargetX8632::stackVarToAsmOperand(const Variable *Var) const { |
+ assert(!Var->hasReg()); |
+ int32_t Offset = Var->getStackOffset(); |
+ if (!hasFramePointer()) |
+ Offset += getStackAdjustment(); |
+ return x86::Address(x86::Register(getFrameOrStackReg()), Offset); |
+} |
+ |
void TargetX8632::lowerArguments() { |
VarList &Args = Func->getArgs(); |
// The first four arguments of vector type, regardless of their |