commit | 6f62cffd63ba698fafe8a89470b0c02c4586d991 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | Thu Aug 06 21:31:35 2009 +0000 |
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | Thu Aug 06 21:31:35 2009 +0000 |
tree | c1b2443a8715ead2568cc7bc55f3628d8afd814b | |
parent | 31f5591c91d4c012901018013aba19b0015fa6a0 [diff] [blame] |
Output the new StructType constructor, which takes the context of the module as first argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78340 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 3e9c29e..c467ead 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -575,6 +575,7 @@ nl(Out); } Out << "StructType* " << typeName << " = StructType::get(" + << "mod->getContext(), " << typeName << "_fields, /*isPacked=*/" << (ST->isPacked() ? "true" : "false") << ");"; nl(Out);