summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-15 20:26:20 +0000
committerDan Gohman <gohman@apple.com>2010-10-15 20:26:20 +0000
commitc44fd6486ee5025a91a6531ea7aec47c46fcf9af (patch)
tree2ee79cd29a842057838d5c22667a5d1d708decc5
parent2d0a3c7b8c31d522e8c1456bd005bd3ecf57b84b (diff)
downloadbcm5719-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
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.cpp5
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.
OpenPOWER on IntegriCloud