summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-03-21 21:47:26 +0000
committerReid Kleckner <rnk@google.com>2018-03-21 21:47:26 +0000
commit8562c1a198058da87e4669fba8aff20ab258e8ef (patch)
treeb1ff0bf347171229cb50333d170a82a8ac742b3d
parent440219d53ef6e6c412fe2e6b041f515f1e0cb4bf (diff)
downloadbcm5719-llvm-8562c1a198058da87e4669fba8aff20ab258e8ef.tar.gz
bcm5719-llvm-8562c1a198058da87e4669fba8aff20ab258e8ef.zip
[PDB] Remove unused private variable, re-applying r327900 after relanding more natvis changes[4~
llvm-svn: 328156
-rw-r--r--llvm/include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h4
-rw-r--r--llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp6
-rw-r--r--llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp5
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 1fc4a3a305c..635508da84e 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<IDiaInjectedSource> DiaSourceFile);
+ explicit DIAInjectedSource(CComPtr<IDiaInjectedSource> 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<IDiaInjectedSource> SourceFile;
};
} // namespace pdb
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<IPDBInjectedSource>(
- new DIAInjectedSource(Session, Item));
+ return std::unique_ptr<IPDBInjectedSource>(new DIAInjectedSource(Item));
}
std::unique_ptr<IPDBInjectedSource> DIAEnumInjectedSources::getNext() {
@@ -40,8 +39,7 @@ std::unique_ptr<IPDBInjectedSource> DIAEnumInjectedSources::getNext() {
if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
return nullptr;
- return std::unique_ptr<IPDBInjectedSource>(
- new DIAInjectedSource(Session, Item));
+ return std::unique_ptr<IPDBInjectedSource>(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<IDiaInjectedSource> DiaSourceFile)
- : Session(Session), SourceFile(DiaSourceFile) {}
+DIAInjectedSource::DIAInjectedSource(CComPtr<IDiaInjectedSource> DiaSourceFile)
+ : SourceFile(DiaSourceFile) {}
uint32_t DIAInjectedSource::getCrc32() const {
DWORD Crc;
OpenPOWER on IntegriCloud