[PDB] Remove unused private variable, re-applying r327900 after relanding more natvis changes[4~

llvm-svn: 328156
This commit is contained in:
Reid Kleckner 2018-03-21 21:47:26 +00:00
parent 440219d53e
commit 8562c1a198
3 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -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(); }

View File

@ -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;