[llvm-commits] [llvm] r78340 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Thu Aug 6 14:31:36 PDT 2009
Author: geoffray
Date: Thu Aug 6 16:31:35 2009
New Revision: 78340
URL: http://llvm.org/viewvc/llvm-project?rev=78340&view=rev
Log:
Output the new StructType constructor, which takes the context of the
module as first argument.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=78340&r1=78339&r2=78340&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Thu Aug 6 16:31:35 2009
@@ -575,6 +575,7 @@
nl(Out);
}
Out << "StructType* " << typeName << " = StructType::get("
+ << "mod->getContext(), "
<< typeName << "_fields, /*isPacked=*/"
<< (ST->isPacked() ? "true" : "false") << ");";
nl(Out);
More information about the llvm-commits
mailing list