diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-06 00:23:49 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-06 00:23:49 +0000 |
commit | 0911ae8ef20f0251d51cb840cbe41b4255565351 (patch) | |
tree | 16119fee7e3c33cd3f92757363d9e1fcc79d30e2 /clang/lib/CodeGen/CGVtable.h | |
parent | 58eea20f47c54ff0f230234cddac70dec44da16c (diff) | |
download | bcm5719-llvm-0911ae8ef20f0251d51cb840cbe41b4255565351.tar.gz bcm5719-llvm-0911ae8ef20f0251d51cb840cbe41b4255565351.zip |
Pass the desired vtable linkage to GenerateVtable directly. Only call MaybeMarkVirtualImplicitMembersReferenced for non-inline functions.
llvm-svn: 90686
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.h')
-rw-r--r-- | clang/lib/CodeGen/CGVtable.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGVtable.h b/clang/lib/CodeGen/CGVtable.h index bfffb673aef..37fa1230f69 100644 --- a/clang/lib/CodeGen/CGVtable.h +++ b/clang/lib/CodeGen/CGVtable.h @@ -15,12 +15,9 @@ #define CLANG_CODEGEN_CGVTABLE_H #include "llvm/ADT/DenseMap.h" +#include "llvm/GlobalVariable.h" #include "GlobalDecl.h" -namespace llvm { - class GlobalVariable; -} - namespace clang { class CXXRecordDecl; @@ -97,9 +94,11 @@ class CGVtableInfo { /// rtti data structure and the VTT. void GenerateClassData(const CXXRecordDecl *RD); - llvm::GlobalVariable *GenerateVtable(const CXXRecordDecl *LayoutClass, - const CXXRecordDecl *RD, - uint64_t Offset); + llvm::GlobalVariable * + + GenerateVtable(llvm::GlobalVariable::LinkageTypes Linkage, + const CXXRecordDecl *LayoutClass, const CXXRecordDecl *RD, + uint64_t Offset); public: CGVtableInfo(CodeGenModule &CGM) |