summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-02-16 14:50:09 +0000
committerDuncan Sands <baldrick@free.fr>2010-02-16 14:50:09 +0000
commitcbd43f89acea19925401398cf10d2c8e0f9b8b1f (patch)
tree45c1e733df6d9123217f9d8135ce168687a058d8 /llvm/lib/VMCore/AsmWriter.cpp
parent19d0b47b1f58f913f9d39f0e2b0eb470f04ba82f (diff)
downloadbcm5719-llvm-cbd43f89acea19925401398cf10d2c8e0f9b8b1f.tar.gz
bcm5719-llvm-cbd43f89acea19925401398cf10d2c8e0f9b8b1f.zip
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned. llvm-svn: 96349
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 82e9a6ace59..1ed13843f0f 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -377,7 +377,7 @@ namespace {
// If this is a structure or opaque type, add a name for the type.
if (((Ty->isStructTy() && cast<StructType>(Ty)->getNumElements())
- || isa<OpaqueType>(Ty)) && !TP.hasTypeName(Ty)) {
+ || Ty->isOpaqueTy()) && !TP.hasTypeName(Ty)) {
TP.addTypeName(Ty, "%"+utostr(unsigned(NumberedTypes.size())));
NumberedTypes.push_back(Ty);
}
@@ -432,7 +432,7 @@ static void AddModuleTypesToPrinter(TypePrinting &TP,
if (const PointerType *PTy = dyn_cast<PointerType>(Ty)) {
const Type *PETy = PTy->getElementType();
if ((PETy->isPrimitiveType() || PETy->isIntegerTy()) &&
- !isa<OpaqueType>(PETy))
+ !PETy->isOpaqueTy())
continue;
}
OpenPOWER on IntegriCloud