diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-15 20:26:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-15 20:26:20 +0000 |
commit | c44fd6486ee5025a91a6531ea7aec47c46fcf9af (patch) | |
tree | 2ee79cd29a842057838d5c22667a5d1d708decc5 /clang/lib/CodeGen/CodeGenTBAA.cpp | |
parent | 2d0a3c7b8c31d522e8c1456bd005bd3ecf57b84b (diff) | |
download | bcm5719-llvm-c44fd6486ee5025a91a6531ea7aec47c46fcf9af.tar.gz bcm5719-llvm-c44fd6486ee5025a91a6531ea7aec47c46fcf9af.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenTBAA.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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. |