summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-10-08 04:19:16 +0000
committerZachary Turner <zturner@google.com>2018-10-08 04:19:16 +0000
commit94926a6db8bef54f251399408ef0c3fb722c6528 (patch)
tree7e14b6da003a95a1d9e5ab7af87d200c79eba5df /llvm/lib/DebugInfo/CodeView
parent98dd9d6896ec1ddbb8d660ad1d283345a6165339 (diff)
downloadbcm5719-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/CodeView')
-rw-r--r--llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
index 4cb267e857e..54bf9040f17 100644
--- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
+++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
@@ -262,7 +262,8 @@ Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
Compile3Sym &Compile3) {
W.printEnum("Language", Compile3.getLanguage(), getSourceLanguageNames());
- W.printFlags("Flags", Compile3.getFlags(), getCompileSym3FlagNames());
+ W.printFlags("Flags", uint32_t(Compile3.getFlags()),
+ getCompileSym3FlagNames());
W.printEnum("Machine", unsigned(Compile3.Machine), getCPUTypeNames());
CompilationCPUType = Compile3.Machine;
std::string FrontendVersion;
OpenPOWER on IntegriCloud