summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-12 18:07:07 +0000
committerChris Lattner <sabre@nondot.org>2011-08-12 18:07:07 +0000
commit01becebef303d13e9dd44ba85de1d4c4c8708f37 (patch)
tree24959abe43afe77b6e2e8b1286e8229e2f41bb66 /llvm/lib/Target/CppBackend
parent335d399a0ebaad60b788124180f850c25326576f (diff)
downloadbcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.tar.gz
bcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.zip
switch to the new struct apis.
llvm-svn: 137481
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp6
1 files changed, 3 insertions, 3 deletions
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<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 {
OpenPOWER on IntegriCloud