From: Reid Kleckner Date: Fri, 14 Sep 2018 20:16:31 +0000 (+0000) Subject: Remove unused DIASession field X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba732f213dbc90f89c50a15548f7e09a6c291438;p=platform%2Fupstream%2Fllvm.git Remove unused DIASession field llvm-svn: 342272 --- diff --git a/llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h b/llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h index 2fcefec..4669a8d 100644 --- a/llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h +++ b/llvm/include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h @@ -16,12 +16,10 @@ namespace llvm { namespace pdb { -class DIASession; class DIAEnumInjectedSources : public IPDBEnumChildren { public: explicit DIAEnumInjectedSources( - const DIASession &PDBSession, CComPtr DiaEnumerator); uint32_t getChildCount() const override; @@ -30,7 +28,6 @@ public: void reset() override; private: - const DIASession &Session; CComPtr Enumerator; }; } // namespace pdb diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp index f90de34..6c361b8 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp @@ -15,9 +15,8 @@ using namespace llvm; using namespace llvm::pdb; DIAEnumInjectedSources::DIAEnumInjectedSources( - const DIASession &PDBSession, CComPtr DiaEnumerator) - : Session(PDBSession), Enumerator(DiaEnumerator) {} + : Enumerator(DiaEnumerator) {} uint32_t DIAEnumInjectedSources::getChildCount() const { LONG Count = 0; diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp index 8f90f49..7726fe1 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp @@ -407,7 +407,7 @@ DIASession::getInjectedSources() const { if (!Files) return nullptr; - return llvm::make_unique(*this, Files); + return llvm::make_unique(Files); } std::unique_ptr