diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-04 03:46:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-04 03:46:21 +0000 |
commit | 0e881169afe062b9336d626ac5522d57cbcbc6d4 (patch) | |
tree | f33442564ca400ed7e0f9efced8735830dc7d095 /lib/CodeGen/CGVtable.cpp | |
parent | c0c4993d1c0ba633520abe0fb51bcb6c16d8a649 (diff) |
Remove an unused member variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 736af406fc..defa809766 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -45,9 +45,7 @@ private: llvm::Constant *rtti; llvm::LLVMContext &VMContext; CodeGenModule &CGM; // Per-module state. - /// Index - Maps a method decl into a vtable index. Useful for virtual - /// dispatch codegen. - llvm::DenseMap<GlobalDecl, Index_t> Index; + llvm::DenseMap<GlobalDecl, Index_t> VCall; llvm::DenseMap<GlobalDecl, Index_t> VCallOffset; // This is the offset to the nearest virtual base @@ -178,7 +176,6 @@ public: Ptr8Ty = llvm::PointerType::get(llvm::Type::getInt8Ty(VMContext), 0); } - llvm::DenseMap<GlobalDecl, Index_t> &getIndex() { return Index; } llvm::DenseMap<const CXXRecordDecl *, Index_t> &getVBIndex() { return VBIndex; } @@ -342,7 +339,6 @@ public: // entry. Methods.AddMethod(GD); - Index[GD] = submethods.size(); submethods.push_back(m); D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(), (int)Index[GD])); @@ -782,7 +778,6 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m, Methods.OverrideMethod(OGD, GD); - Index[GD] = i; submethods[i] = m; ThisAdjustments.erase(i); if (MorallyVirtual || VCall.count(OGD)) { |