diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-28 20:45:28 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-28 20:45:28 +0000 |
commit | 66f82e68c3d858d6628287b400c7ce9ff771b6ec (patch) | |
tree | 392925e237f088a6311eb7483dc40a26562d62a1 /clang/lib/CodeGen/CGVTT.cpp | |
parent | 4146b0404eab2a98023276bc377a947f1c44efc0 (diff) | |
download | bcm5719-llvm-66f82e68c3d858d6628287b400c7ce9ff771b6ec.tar.gz bcm5719-llvm-66f82e68c3d858d6628287b400c7ce9ff771b6ec.zip |
[ms-cxxabi] Move CodeGenVTables::needsVTTParameter to ItaniumCXXABI.
This function only makes sense there. Eventually it should no longer
be part of the CGCXXABI interface, as it is an Itanium-specific detail.
Differential Revision: http://llvm-reviews.chandlerc.com/D821
llvm-svn: 185213
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTT.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp index 98be872a552..a02292e4aeb 100644 --- a/clang/lib/CodeGen/CGVTT.cpp +++ b/clang/lib/CodeGen/CGVTT.cpp @@ -120,24 +120,6 @@ llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) { return GV; } -bool CodeGenVTables::needsVTTParameter(GlobalDecl GD) { - const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); - - // We don't have any virtual bases, just return early. - if (!MD->getParent()->getNumVBases()) - return false; - - // Check if we have a base constructor. - if (isa<CXXConstructorDecl>(MD) && GD.getCtorType() == Ctor_Base) - return true; - - // Check if we have a base destructor. - if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base) - return true; - - return false; -} - uint64_t CodeGenVTables::getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base) { BaseSubobjectPairTy ClassSubobjectPair(RD, Base); |