[cfe-commits] r90534 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Anders Carlsson andersca at mac.com
Thu Dec 3 19:46:22 PST 2009


Author: andersca
Date: Thu Dec  3 21:46:21 2009
New Revision: 90534

URL: http://llvm.org/viewvc/llvm-project?rev=90534&view=rev
Log:
Remove an unused member variable.

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=90534&r1=90533&r2=90534&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Thu Dec  3 21:46:21 2009
@@ -45,9 +45,7 @@
   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 @@
     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 @@
     // 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 @@
 
       Methods.OverrideMethod(OGD, GD);
 
-      Index[GD] = i;
       submethods[i] = m;
       ThisAdjustments.erase(i);
       if (MorallyVirtual || VCall.count(OGD)) {





More information about the cfe-commits mailing list