[cfe-commits] r90530 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Anders Carlsson
andersca at mac.com
Thu Dec 3 18:58:13 PST 2009
Author: andersca
Date: Thu Dec 3 20:58:12 2009
New Revision: 90530
URL: http://llvm.org/viewvc/llvm-project?rev=90530&view=rev
Log:
Get rid of the PureVirtualMethods map.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90530&r1=90529&r2=90530&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Thu Dec 3 20:58:12 2009
@@ -125,10 +125,6 @@
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 @@
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 @@
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 @@
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];
More information about the cfe-commits
mailing list