From 426885b10cfc6170ac0a26a7654608cfa4d4dcad Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 19 Mar 2018 20:22:48 +0000 Subject: [PATCH] Remove an unused private variable. llvm-svn: 327900 --- llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h | 4 +--- llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp | 6 ++---- llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp | 5 ++--- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h b/llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h index 1fc4a3a..635508d 100644 --- a/llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h +++ b/llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h @@ -19,8 +19,7 @@ class DIASession; class DIAInjectedSource : public IPDBInjectedSource { public: - explicit DIAInjectedSource(const DIASession &Session, - CComPtr DiaSourceFile); + explicit DIAInjectedSource(CComPtr DiaSourceFile); uint32_t getCrc32() const override; uint64_t getCodeByteSize() const override; @@ -31,7 +30,6 @@ public: std::string getCode() const override; private: - const DIASession &Session; CComPtr SourceFile; }; } // namespace pdb diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp index 873f4a0..d7c908e 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp @@ -30,8 +30,7 @@ DIAEnumInjectedSources::getChildAtIndex(uint32_t Index) const { if (S_OK != Enumerator->Item(Index, &Item)) return nullptr; - return std::unique_ptr( - new DIAInjectedSource(Session, Item)); + return std::unique_ptr(new DIAInjectedSource(Item)); } std::unique_ptr DIAEnumInjectedSources::getNext() { @@ -40,8 +39,7 @@ std::unique_ptr DIAEnumInjectedSources::getNext() { if (S_OK != Enumerator->Next(1, &Item, &NumFetched)) return nullptr; - return std::unique_ptr( - new DIAInjectedSource(Session, Item)); + return std::unique_ptr(new DIAInjectedSource(Item)); } void DIAEnumInjectedSources::reset() { Enumerator->Reset(); } diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp index fbd1695..1d642f2 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp @@ -16,9 +16,8 @@ using namespace llvm; using namespace llvm::pdb; -DIAInjectedSource::DIAInjectedSource(const DIASession &Session, - CComPtr DiaSourceFile) - : Session(Session), SourceFile(DiaSourceFile) {} +DIAInjectedSource::DIAInjectedSource(CComPtr DiaSourceFile) + : SourceFile(DiaSourceFile) {} uint32_t DIAInjectedSource::getCrc32() const { DWORD Crc; -- 2.7.4