Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index b4e1b3ea41b8441c332489622e1b9d1e8879c10a..8a35f6021174b18882b8256b6db7138f38f82dfe 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 |