diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2009-08-06 21:31:35 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2009-08-06 21:31:35 +0000 |
commit | 048e415c283d85c684ce26eacc18d10d92538bbe (patch) | |
tree | c1b2443a8715ead2568cc7bc55f3628d8afd814b /lib/Target | |
parent | 8945dca72107dd4e0587dc3e9c256de556b83077 (diff) | |
download | external_llvm-048e415c283d85c684ce26eacc18d10d92538bbe.zip external_llvm-048e415c283d85c684ce26eacc18d10d92538bbe.tar.gz external_llvm-048e415c283d85c684ce26eacc18d10d92538bbe.tar.bz2 |
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
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ namespace { nl(Out); } Out << "StructType* " << typeName << " = StructType::get(" + << "mod->getContext(), " << typeName << "_fields, /*isPacked=*/" << (ST->isPacked() ? "true" : "false") << ");"; nl(Out); |