diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/DIA')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp index d7c908e0459..873f4a0a8db 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIAEnumInjectedSources.cpp @@ -30,7 +30,8 @@ DIAEnumInjectedSources::getChildAtIndex(uint32_t Index) const { if (S_OK != Enumerator->Item(Index, &Item)) return nullptr; - return std::unique_ptr<IPDBInjectedSource>(new DIAInjectedSource(Item)); + return std::unique_ptr<IPDBInjectedSource>( + new DIAInjectedSource(Session, Item)); } std::unique_ptr<IPDBInjectedSource> DIAEnumInjectedSources::getNext() { @@ -39,7 +40,8 @@ std::unique_ptr<IPDBInjectedSource> DIAEnumInjectedSources::getNext() { if (S_OK != Enumerator->Next(1, &Item, &NumFetched)) return nullptr; - return std::unique_ptr<IPDBInjectedSource>(new DIAInjectedSource(Item)); + return std::unique_ptr<IPDBInjectedSource>( + new DIAInjectedSource(Session, 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 1d642f221d7..fbd169524b6 100644 --- a/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp +++ b/llvm/lib/DebugInfo/PDB/DIA/DIAInjectedSource.cpp @@ -16,8 +16,9 @@ using namespace llvm; using namespace llvm::pdb; -DIAInjectedSource::DIAInjectedSource(CComPtr<IDiaInjectedSource> DiaSourceFile) - : SourceFile(DiaSourceFile) {} +DIAInjectedSource::DIAInjectedSource(const DIASession &Session, + CComPtr<IDiaInjectedSource> DiaSourceFile) + : Session(Session), SourceFile(DiaSourceFile) {} uint32_t DIAInjectedSource::getCrc32() const { DWORD Crc; |