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 | 01becebef303d13e9dd44ba85de1d4c4c8708f37 (patch) | |
| tree | 24959abe43afe77b6e2e8b1286e8229e2f41bb66 /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | 335d399a0ebaad60b788124180f850c25326576f (diff) | |
| download | bcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.tar.gz bcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.zip | |
switch to the new struct apis.
llvm-svn: 137481
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<StructType>(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<StructType>(const_cast<Type*>(this))) - if (!STy->isAnonymous()) { + if (!STy->isLiteral()) { OS << " = type "; TP.printStructBody(STy, OS); } |

