summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenTBAA.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-03-26 17:03:51 +0000
committerKostya Serebryany <kcc@google.com>2012-03-26 17:03:51 +0000
commit141e46faf0d749356ec1de11963527aaea2b3078 (patch)
treee163d8b72faf2713c6f7532c140d52bce17d903a /clang/lib/CodeGen/CodeGenTBAA.cpp
parentdb534a4eb97666b5fde75e816bc91cbbb0fdf864 (diff)
downloadbcm5719-llvm-141e46faf0d749356ec1de11963527aaea2b3078.tar.gz
bcm5719-llvm-141e46faf0d749356ec1de11963527aaea2b3078.zip
add tbaa metadata to vtable pointer loads/stores
llvm-svn: 153447
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp
index 148081e928e..9ee3f1d2e67 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.cpp
+++ b/clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -179,3 +179,7 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) {
// For now, handle any other kind of type conservatively.
return MetadataCache[Ty] = getChar();
}
+
+llvm::MDNode *CodeGenTBAA::getTBAAInfoForVTablePtr() {
+ return getTBAAInfoForNamedType("vtable pointer", getRoot());
+}
OpenPOWER on IntegriCloud