diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-04 08:36:58 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-04 08:36:58 +0000 |
commit | ca9b56c26a8ab2a01439b191cffb4b8329260268 (patch) | |
tree | a978df4e04c11af78a8485a4b1c53cb4e9074231 /lib/CodeGen/CGVtable.cpp | |
parent | 4714583d5a6d53a1fe42b77ecaa7c7ecb40990a6 (diff) |
Eliminate submethods vector.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 154e0fad33..40daadb824 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -28,7 +28,6 @@ public: typedef uint64_t Index_t; private: std::vector<llvm::Constant *> &methods; - std::vector<llvm::Constant *> submethods; llvm::Type *Ptr8Ty; /// Class - The most derived class that this vtable is being built for. const CXXRecordDecl *Class; @@ -343,7 +342,6 @@ public: // entry. Methods.AddMethod(GD); - submethods.push_back(m); D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(), (int)Index[GD])); if (MorallyVirtual) { @@ -473,8 +471,6 @@ public: methods.push_back(rtti); Index_t AddressPoint = methods.size(); - assert(submethods.size() == Methods.size() && "Method size mismatch!"); - AppendMethodsToVtable(); // and then the non-virtual bases. @@ -780,7 +776,6 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m, Methods.OverrideMethod(OGD, GD); - submethods[Index] = m; ThisAdjustments.erase(Index); if (MorallyVirtual || VCall.count(OGD)) { Index_t &idx = VCall[OGD]; @@ -886,7 +881,6 @@ void VtableBuilder::AppendMethodsToVtable() { BaseReturnTypes.clear(); Methods.clear(); - submethods.clear(); } void CGVtableInfo::ComputeMethodVtableIndices(const CXXRecordDecl *RD) { |