[cfe-commits] r116616 - /cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp

Dan Gohman gohman at apple.com
Fri Oct 15 13:26:20 PDT 2010


Author: djg
Date: Fri Oct 15 15:26:20 2010
New Revision: 116616

URL: http://llvm.org/viewvc/llvm-project?rev=116616&view=rev
Log:
Use a different name for pointer types in tbaa, to be a little
more consistent with other names, and to look less like a magic name.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp?rev=116616&r1=116615&r2=116616&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp Fri Oct 15 15:26:20 2010
@@ -85,9 +85,10 @@
     }
   }
 
-  // For now, treat all pointers as equivalent to each other.
+  // TODO: Implement C++'s type "similarity" and consider dis-"similar"
+  // pointers distinct.
   if (Ty->isPointerType())
-    return MetadataCache[Ty] = getTBAAInfoForNamedType("TBAA.pointer", Char);
+    return MetadataCache[Ty] = getTBAAInfoForNamedType("any pointer", Char);
 
   // Enum types are distinct types. In C++ they have "underlying types",
   // however they aren't related for TBAA.





More information about the cfe-commits mailing list