summaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2007-08-10 14:44:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2007-08-10 14:44:42 +0000
commit594d37e21aea4ef841d9ee5d9c328c4bf1c6bed7 (patch)
tree5f2d522f84dd3b83747f6182b98ba0fa17795c04 /utils/TableGen
parentae9671b838150c780c13e601574efa6641788f2b (diff)
downloadexternal_llvm-594d37e21aea4ef841d9ee5d9c328c4bf1c6bed7.zip
external_llvm-594d37e21aea4ef841d9ee5d9c328c4bf1c6bed7.tar.gz
external_llvm-594d37e21aea4ef841d9ee5d9c328c4bf1c6bed7.tar.bz2
propagate struct size and alignment of byval arguments to the DAG
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/CallingConvEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp
index 2929aba..5c88b5f 100644
--- a/utils/TableGen/CallingConvEmitter.cpp
+++ b/utils/TableGen/CallingConvEmitter.cpp
@@ -130,7 +130,9 @@ void CallingConvEmitter::EmitAction(Record *Action,
<< IndentStr << "else\n"
<< IndentStr << IndentStr << "LocInfo = CCValAssign::AExt;\n";
} else if (Action->isSubClassOf("CCStructAssign")) {
- O << "assert(0 && \"Not Implemented\");\n";
+ O << IndentStr <<
+ "State.HandleStruct(ValNo, ValVT, LocVT, LocInfo, ArgFlags);\n";
+ O << IndentStr << "return false;\n";
} else {
Action->dump();
throw "Unknown CCAction!";