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 | 8cb4a070d491ddd671b049110cc8d0accb08b905 (patch) | |
tree | 069fdc3e8e7959280024f5ce210b4e2be3cd831a /lib/CodeGen/CodeGenTBAA.cpp | |
parent | 1eb18afd931f626713c066ede0707ceb522fa061 (diff) |
add tbaa metadata to vtable pointer loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTBAA.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTBAA.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTBAA.cpp b/lib/CodeGen/CodeGenTBAA.cpp index 148081e928..9ee3f1d2e6 100644 --- a/lib/CodeGen/CodeGenTBAA.cpp +++ b/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()); +} |