From 8562c1a198058da87e4669fba8aff20ab258e8ef Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 21 Mar 2018 21:47:26 +0000 Subject: [PDB] Remove unused private variable, re-applying r327900 after relanding more natvis changes[4~ llvm-svn: 328156 --- llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp | 6 ++---- llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'llvm/lib/DebugInfo') diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp index 873f4a0a8db..d7c908e0459 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 fbd169524b6..1d642f221d7 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; -- cgit v1.2.3