Move the vtable builder to CGVtable.cpp, general cleanup.
llvm-svn: 83798
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user