aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-15 03:34:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-15 03:34:58 +0000
commitfc149023d80ef4cb46157bb7275038de278bf041 (patch)
tree491f1c0f7a92d638b50a332862f099aa7a4bf77e /utils
parentf7e2f7ad8a2c893ff4d2a742320c3544d7d55843 (diff)
downloadexternal_llvm-fc149023d80ef4cb46157bb7275038de278bf041.zip
external_llvm-fc149023d80ef4cb46157bb7275038de278bf041.tar.gz
external_llvm-fc149023d80ef4cb46157bb7275038de278bf041.tar.bz2
Rename CCIfStruct to CCIfByVal and CCStructAssign to CCPassByVal. Remove unused parameters of CCStructAssign and add size and alignment requirement info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CallingConvEmitter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp
index f7c2eda..0ffbd68 100644
--- a/utils/TableGen/CallingConvEmitter.cpp
+++ b/utils/TableGen/CallingConvEmitter.cpp
@@ -140,9 +140,12 @@ void CallingConvEmitter::EmitAction(Record *Action,
<< IndentStr << IndentStr << "LocInfo = CCValAssign::ZExt;\n"
<< IndentStr << "else\n"
<< IndentStr << IndentStr << "LocInfo = CCValAssign::AExt;\n";
- } else if (Action->isSubClassOf("CCStructAssign")) {
- O << IndentStr <<
- "State.HandleStruct(ValNo, ValVT, LocVT, LocInfo, ArgFlags);\n";
+ } else if (Action->isSubClassOf("CCPassByVal")) {
+ int Size = Action->getValueAsInt("Size");
+ int Align = Action->getValueAsInt("Align");
+ O << IndentStr
+ << "State.HandleByVal(ValNo, ValVT, LocVT, LocInfo, "
+ << Size << ", " << Align << ", ArgFlags);\n";
O << IndentStr << "return false;\n";
} else {
Action->dump();