summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-08-06 15:35:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-08-06 15:35:32 +0000
commit55e958746901ef8c04f370e746a7538137d0bcf8 (patch)
tree2d23220ec2267d39dbb9cdd9e23cb630ee35980c /utils
parente52e9d60456073dddd691ae94c09b790f4bc26d5 (diff)
downloadllvm-55e958746901ef8c04f370e746a7538137d0bcf8.tar.gz
llvm-55e958746901ef8c04f370e746a7538137d0bcf8.tar.bz2
llvm-55e958746901ef8c04f370e746a7538137d0bcf8.tar.xz
Fix eabi calling convention when a 64 bit value shadows r3.
Without this what was happening was: * R3 is not marked as "used" * ARM backend thinks it has to save it to the stack because of vaarg * Offset computation correctly ignores it * Offsets are wrong git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CallingConvEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp
index 28ba2ed49f..7643609b87 100644
--- a/utils/TableGen/CallingConvEmitter.cpp
+++ b/utils/TableGen/CallingConvEmitter.cpp
@@ -169,6 +169,8 @@ void CallingConvEmitter::EmitAction(Record *Action,
else
O << "\n" << IndentStr << " State.getTarget().getTargetData()"
"->getABITypeAlignment(LocVT.getTypeForEVT(State.getContext()))";
+ if (Action->isSubClassOf("CCAssignToStackWithShadow"))
+ O << ", " << getQualifiedName(Action->getValueAsDef("ShadowReg"));
O << ");\n" << IndentStr
<< "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"
<< Counter << ", LocVT, LocInfo));\n";