From c44fd6486ee5025a91a6531ea7aec47c46fcf9af Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 15 Oct 2010 20:26:20 +0000 Subject: 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. llvm-svn: 116616 --- clang/lib/CodeGen/CodeGenTBAA.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenTBAA.cpp') diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp index a1f38be1229..02c95c0dce4 100644 --- a/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/clang/lib/CodeGen/CodeGenTBAA.cpp @@ -85,9 +85,10 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) { } } - // 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. -- cgit v1.2.3