switch to the new struct apis.
llvm-svn: 137481
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 005f51a..62214a1 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -171,7 +171,7 @@
StructType *STy = *I;
// Ignore anonymous types.
- if (STy->isAnonymous())
+ if (STy->isLiteral())
continue;
if (STy->getName().empty())
@@ -221,7 +221,7 @@
case Type::StructTyID: {
StructType *STy = cast<StructType>(Ty);
- if (STy->isAnonymous())
+ if (STy->isLiteral())
return printStructBody(STy, OS);
if (!STy->getName().empty())
@@ -2024,7 +2024,7 @@
// If the type is a named struct type, print the body as well.
if (StructType *STy = dyn_cast<StructType>(const_cast<Type*>(this)))
- if (!STy->isAnonymous()) {
+ if (!STy->isLiteral()) {
OS << " = type ";
TP.printStructBody(STy, OS);
}