[cfe-commits] r65560 - in /cfe/trunk/lib: Analysis/BugReporter.cpp CodeGen/CGCall.cpp CodeGen/CodeGenFunction.cpp

Daniel Dunbar daniel at zuster.org
Thu Feb 26 11:03:24 PST 2009


Author: ddunbar
Date: Thu Feb 26 13:03:24 2009
New Revision: 65560

URL: http://llvm.org/viewvc/llvm-project?rev=65560&view=rev
Log:
Drop uses of isPointerLikeType.
 - No functionality change.

Modified:
    cfe/trunk/lib/Analysis/BugReporter.cpp
    cfe/trunk/lib/CodeGen/CGCall.cpp
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=65560&r1=65559&r2=65560&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Thu Feb 26 13:03:24 2009
@@ -471,7 +471,7 @@
     
     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() + "'";
       

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=65560&r1=65559&r2=65560&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Feb 26 13:03:24 2009
@@ -525,8 +525,8 @@
   } 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()) {

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=65560&r1=65559&r2=65560&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Thu Feb 26 13:03:24 2009
@@ -82,8 +82,8 @@
 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();
 }
 





More information about the cfe-commits mailing list