aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-04 02:58:12 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-04 02:58:12 +0000
commit1e2180bf322f537468f3d94d2ee731cffd994b0a (patch)
tree01ea40a76b54d019589b47f51b0c1d27645e7e91
parentbf54027d277650809b5957fc4165890e7202aca5 (diff)
Get rid of the PureVirtualMethods map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90530 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGVtable.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index f1226227e6..bb22ebc037 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -125,10 +125,6 @@ private:
typedef llvm::DenseMap<uint64_t, CanQualType> BaseReturnTypesMapTy;
BaseReturnTypesMapTy BaseReturnTypes;
- /// PureVirtualMethods - Pure virtual methods.
- typedef llvm::DenseSet<GlobalDecl> PureVirtualMethodsSetTy;
- PureVirtualMethodsSetTy PureVirtualMethods;
-
std::vector<Index_t> VCalls;
typedef std::pair<const CXXRecordDecl *, uint64_t> CtorVtable_t;
@@ -338,8 +334,6 @@ public:
CurrentVBaseOffset))
return;
- const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
-
// We didn't find an entry in the vtable that we could use, add a new
// entry.
Methods.AddMethod(GD);
@@ -348,8 +342,6 @@ public:
submethods.push_back(m);
D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(),
(int)Index[GD]));
- if (MD->isPure())
- PureVirtualMethods.insert(GD);
if (MorallyVirtual) {
VCallOffset[GD] = Offset/8;
Index_t &idx = VCall[GD];
@@ -787,9 +779,6 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m,
Index[GD] = i;
submethods[i] = m;
- if (isPure)
- PureVirtualMethods.insert(GD);
- PureVirtualMethods.erase(OGD);
ThisAdjustments.erase(i);
if (MorallyVirtual || VCall.count(OGD)) {
Index_t &idx = VCall[OGD];