diff options
author | Kostya Serebryany <kcc@google.com> | 2012-03-26 17:03:51 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-03-26 17:03:51 +0000 |
commit | 141e46faf0d749356ec1de11963527aaea2b3078 (patch) | |
tree | e163d8b72faf2713c6f7532c140d52bce17d903a /clang/lib/CodeGen/CodeGenTBAA.cpp | |
parent | db534a4eb97666b5fde75e816bc91cbbb0fdf864 (diff) | |
download | bcm5719-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.cpp | 4 |
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()); +} |