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 | c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf (patch) | |
tree | 50f7407039d9e3530ced09a2025b166aa4d27eab /lib/VMCore | |
parent | 3ebb64946bc8e7c8feba1b2044e7a47f80b3a83f (diff) | |
download | external_llvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.tar.gz external_llvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.tar.bz2 external_llvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.zip |
switch to the new struct apis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 6 | ||||
-rw-r--r-- | lib/VMCore/Core.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 005f51aae3..62214a1a2e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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); } diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index bff0d865cf..883ad91343 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -299,7 +299,7 @@ LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char *Name) { - return wrap(StructType::createNamed(*unwrap(C), Name)); + return wrap(StructType::create(*unwrap(C), Name)); } void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, |