diff options
| author | Zachary Turner <zturner@google.com> | 2018-10-08 04:19:16 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-10-08 04:19:16 +0000 |
| commit | 94926a6db8bef54f251399408ef0c3fb722c6528 (patch) | |
| tree | 7e14b6da003a95a1d9e5ab7af87d200c79eba5df /llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp | |
| parent | 98dd9d6896ec1ddbb8d660ad1d283345a6165339 (diff) | |
| download | bcm5719-llvm-94926a6db8bef54f251399408ef0c3fb722c6528.tar.gz bcm5719-llvm-94926a6db8bef54f251399408ef0c3fb722c6528.zip | |
[PDB] Add the ability to lookup global symbols by name.
The Globals table is a hash table keyed on symbol name, so
it's possible to lookup symbols by name in O(1) time. Add
a function to the globals stream to do this, and add an option
to llvm-pdbutil to exercise this, then use it to write some
tests to verify correctness.
llvm-svn: 343951
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp b/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp index edaa783398c..60ac17b655a 100644 --- a/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp @@ -197,7 +197,7 @@ PDB_Machine DbiStream::getMachineType() const { return static_cast<PDB_Machine>(Machine); } -FixedStreamArray<object::coff_section> DbiStream::getSectionHeaders() { +FixedStreamArray<object::coff_section> DbiStream::getSectionHeaders() const { return SectionHeaders; } |

