]> granicus.if.org Git - clang/commitdiff
Drop uses of isPointerLikeType.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 26 Feb 2009 19:03:24 +0000 (19:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 26 Feb 2009 19:03:24 +0000 (19:03 +0000)
 - No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65560 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BugReporter.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenFunction.cpp

index a89542d4c11688c68da7e01b72b6637b4d6b3125..1b013200b9e600983727deed57de17362bb2ab79 100644 (file)
@@ -471,7 +471,7 @@ public:
     
     FullSourceLoc L(S->getLocStart(), BR.getSourceManager());
     
-    if (VD->getType()->isPointerLikeType()) {
+    if (VD->getType()->isPointerType() || VD->getType()->isReferenceType()) {
       std::string msg = "'" + std::string(VD->getNameAsString()) +
       "' now aliases '" + MostRecent->getNameAsString() + "'";
       
index 6de07e165e6b93f006c96ea43d39d01229ee466f..e560bfd82f1b51c3a9c009fcbda87b4e87459e85 100644 (file)
@@ -525,8 +525,8 @@ void X86_64ABIInfo::classify(QualType Ty,
   } else if (const EnumType *ET = Ty->getAsEnumType()) {
     // Classify the underlying integer type.
     classify(ET->getDecl()->getIntegerType(), Context, OffsetBase, Lo, Hi);
-  } else if (Ty->isPointerLikeType() || Ty->isBlockPointerType() ||
-             Ty->isObjCQualifiedIdType() ||
+  } else if (Ty->isPointerType() || Ty->isReferenceType() || 
+             Ty->isBlockPointerType() || Ty->isObjCQualifiedIdType() ||
              Ty->isObjCQualifiedInterfaceType()) {
     Current = Integer;
   } else if (const VectorType *VT = Ty->getAsVectorType()) {
index 5fb0b2babe1c9645bef35b944ef2bb0915320e5a..2f0973466657ee9f9f5de374d4b3f4a681a8fca2 100644 (file)
@@ -82,8 +82,8 @@ bool CodeGenFunction::isObjCPointerType(QualType T) {
 bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
   // FIXME: Use positive checks instead of negative ones to be more
   // robust in the face of extension.
-  return !isObjCPointerType(T) &&!T->isRealType() && !T->isPointerLikeType() &&
-    !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() && 
+  return !isObjCPointerType(T) &&!T->isRealType() && !T->isPointerType() &&
+    !T->isReferenceType() && !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() && 
     !T->isBlockPointerType();
 }