From dbd920c7758e6dfb678a8f503fb14ba97c26f23a Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 11 Oct 2009 22:13:54 +0000 Subject: Move the vtable builder to CGVtable.cpp, general cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83798 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 49bb0bffec..56097317c3 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -21,6 +21,7 @@ #include "CGBlocks.h" #include "CGCall.h" #include "CGCXX.h" +#include "CGVtable.h" #include "CodeGenTypes.h" #include "Mangle.h" #include "llvm/Module.h" @@ -126,6 +127,9 @@ class CodeGenModule : public BlockModule { CodeGenTypes Types; MangleContext MangleCtx; + /// VtableInfo - Holds information about C++ vtables. + CGVtableInfo VtableInfo; + CGObjCRuntime* Runtime; CGDebugInfo* DebugInfo; @@ -221,6 +225,7 @@ public: llvm::Module &getModule() const { return TheModule; } CodeGenTypes &getTypes() { return Types; } MangleContext &getMangleContext() { return MangleCtx; } + CGVtableInfo &getVtableInfo() { return VtableInfo; } Diagnostic &getDiags() const { return Diags; } const llvm::TargetData &getTargetData() const { return TheTargetData; } llvm::LLVMContext &getLLVMContext() { return VMContext; } @@ -256,9 +261,6 @@ public: int64_t nv_t, int64_t v_t, int64_t nv_r, int64_t v_r); - /// GetVtableIndex - Return the vtable index for a virtual member function. - uint64_t GetVtableIndex(const CXXMethodDecl *MD); - /// GetCXXBaseClassOffset - Returns the offset from a derived class to its /// base class. Returns null if the offset is 0. llvm::Constant *GetCXXBaseClassOffset(const CXXRecordDecl *ClassDecl, -- cgit v1.2.3-18-g5258