diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-05 21:03:56 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-05 21:03:56 +0000 |
commit | c8e39ec79f462d343c739135a128e749e510d87e (patch) | |
tree | ebed891fd88824b972b453745996b7648131f992 /clang/lib/CodeGen/CGVtable.h | |
parent | b694f05ffb00fbcdf804a38b9be8114ed33dabb8 (diff) | |
download | bcm5719-llvm-c8e39ec79f462d343c739135a128e749e510d87e.tar.gz bcm5719-llvm-c8e39ec79f462d343c739135a128e749e510d87e.zip |
Add a function for getting the vtable address point of a class.
llvm-svn: 90674
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.h')
-rw-r--r-- | clang/lib/CodeGen/CGVtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGVtable.h b/clang/lib/CodeGen/CGVtable.h index 5c2b74c9dd8..86633d4471c 100644 --- a/clang/lib/CodeGen/CGVtable.h +++ b/clang/lib/CodeGen/CGVtable.h @@ -113,6 +113,11 @@ public: int64_t getVirtualBaseOffsetIndex(const CXXRecordDecl *RD, const CXXRecordDecl *VBase); + /// getVtableAddressPoint - returns the address point of the vtable for the + /// given record decl. + /// FIXME: This should return a list of address points. + uint64_t getVtableAddressPoint(const CXXRecordDecl *RD); + llvm::Constant *getVtable(const CXXRecordDecl *RD); llvm::Constant *getCtorVtable(const CXXRecordDecl *RD, const CXXRecordDecl *Class, uint64_t Offset); |