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/VMCore/AsmWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/VMCore/AsmWriter.cpp') diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 005f51aae30..62214a1a2eb 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -171,7 +171,7 @@ void TypePrinting::incorporateTypes(const Module &M) { StructType *STy = *I; // Ignore anonymous types. - if (STy->isAnonymous()) + if (STy->isLiteral()) continue; if (STy->getName().empty()) @@ -221,7 +221,7 @@ void TypePrinting::print(Type *Ty, raw_ostream &OS) { case Type::StructTyID: { StructType *STy = cast(Ty); - if (STy->isAnonymous()) + if (STy->isLiteral()) return printStructBody(STy, OS); if (!STy->getName().empty()) @@ -2024,7 +2024,7 @@ void Type::print(raw_ostream &OS) const { // If the type is a named struct type, print the body as well. if (StructType *STy = dyn_cast(const_cast(this))) - if (!STy->isAnonymous()) { + if (!STy->isLiteral()) { OS << " = type "; TP.printStructBody(STy, OS); } -- cgit v1.2.3