summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTables.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.h')
-rw-r--r--clang/lib/CodeGen/CGVTables.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGVTables.h b/clang/lib/CodeGen/CGVTables.h
index bd70b5c3594..e4f5366baee 100644
--- a/clang/lib/CodeGen/CGVTables.h
+++ b/clang/lib/CodeGen/CGVTables.h
@@ -31,6 +31,8 @@ namespace CodeGen {
class CodeGenVTables {
CodeGenModule &CGM;
+ // FIXME: Consider moving VTContext and VFTContext into respective CXXABI
+ // classes?
VTableContext VTContext;
OwningPtr<MicrosoftVFTableContext> VFTContext;
@@ -78,6 +80,8 @@ public:
VTableContext &getVTableContext() { return VTContext; }
+ MicrosoftVFTableContext &getVFTableContext() { return *VFTContext.get(); }
+
/// getSubVTTIndex - Return the index of the sub-VTT for the base class of the
/// given record decl.
uint64_t getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base);
OpenPOWER on IntegriCloud