From 01becebef303d13e9dd44ba85de1d4c4c8708f37 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Aug 2011 18:07:07 +0000 Subject: switch to the new struct apis. llvm-svn: 137481 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/CppBackend') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index f16cfaca91f..204a14fff71 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -533,9 +533,9 @@ void CppWriter::printType(Type* Ty) { } case Type::StructTyID: { StructType* ST = cast(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 { -- cgit v1.2.3