diff options
author | Zachary Turner <zturner@google.com> | 2018-12-17 16:15:36 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-12-17 16:15:36 +0000 |
commit | bb3d7e565f9b14559057403e772bc8b26f636534 (patch) | |
tree | dbec4244e4c4201b269dda370dc1f47e76ef4e1d /llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp | |
parent | 1639c6bbb186c733ffb4f54c9f77522f262fe2ba (diff) | |
download | bcm5719-llvm-bb3d7e565f9b14559057403e772bc8b26f636534.tar.gz bcm5719-llvm-bb3d7e565f9b14559057403e772bc8b26f636534.zip |
[PDB] Add some helper functions for working with scopes.
llvm-svn: 349361
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp index 5ff7c1574dd..8c97f4a012f 100644 --- a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp @@ -11,7 +11,9 @@ #include "llvm/ADT/iterator_range.h" #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h" +#include "llvm/DebugInfo/CodeView/SymbolDeserializer.h" #include "llvm/DebugInfo/CodeView/SymbolRecord.h" +#include "llvm/DebugInfo/CodeView/SymbolRecordHelpers.h" #include "llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h" #include "llvm/DebugInfo/PDB/Native/RawError.h" #include "llvm/Support/BinaryStreamReader.h" @@ -77,6 +79,11 @@ Error ModuleDebugStreamRef::reload() { return Error::success(); } +const codeview::CVSymbolArray +ModuleDebugStreamRef::getSymbolArrayForScope(uint32_t ScopeBegin) const { + return limitSymbolArrayToScope(SymbolArray, ScopeBegin); +} + BinarySubstreamRef ModuleDebugStreamRef::getSymbolsSubstream() const { return SymbolsSubstream; } |