diff options
author | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:07:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:07:07 +0000 |
commit | c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf (patch) | |
tree | 50f7407039d9e3530ced09a2025b166aa4d27eab /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 3ebb64946bc8e7c8feba1b2044e7a47f80b3a83f (diff) |
switch to the new struct apis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index f16cfaca91..204a14fff7 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -533,9 +533,9 @@ void CppWriter::printType(Type* Ty) { } case Type::StructTyID: { StructType* ST = cast<StructType>(Ty); - if (!ST->isAnonymous()) { + if (!ST->isLiteral()) { Out << "StructType *" << typeName << " = "; - Out << "StructType::createNamed(mod->getContext(), \""; + Out << "StructType::create(mod->getContext(), \""; printEscapedString(ST->getName()); Out << "\");"; nl(Out); @@ -556,7 +556,7 @@ void CppWriter::printType(Type* Ty) { nl(Out); } - if (ST->isAnonymous()) { + if (ST->isLiteral()) { Out << "StructType *" << typeName << " = "; Out << "StructType::get(" << "mod->getContext(), "; } else { |