diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-07-06 21:07:47 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-07-06 21:07:47 +0000 |
commit | 7abd269aa9bb09dc994e68357eaed83806f24dfc (patch) | |
tree | 6672db20a1efe4f96aa18dbefa063acb3406657b /llvm/lib/DebugInfo/CodeView | |
parent | e1e7372e939646c614fd03f37a267e287ffb8392 (diff) | |
download | bcm5719-llvm-7abd269aa9bb09dc994e68357eaed83806f24dfc.tar.gz bcm5719-llvm-7abd269aa9bb09dc994e68357eaed83806f24dfc.zip |
[CodeView] Emit an appropriate symbol kind for globals
We emitted debug info for globals/functions as if they all had external
linkage. Instead, emit local symbol records when appropriate.
llvm-svn: 274676
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp index 133f9fac19f..6763c3d562d 100644 --- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp @@ -279,6 +279,7 @@ void CVSymbolDumperImpl::visitConstantSym(SymbolKind Kind, void CVSymbolDumperImpl::visitDataSym(SymbolKind Kind, DataSym &Data) { DictScope S(W, "DataSym"); + W.printEnum("Kind", uint16_t(Kind), getSymbolTypeNames()); StringRef LinkageName; if (ObjDelegate) { ObjDelegate->printRelocatedField("DataOffset", Data.getRelocationOffset(), @@ -552,6 +553,7 @@ void CVSymbolDumperImpl::visitProcSym(SymbolKind Kind, ProcSym &Proc) { InFunctionScope = true; StringRef LinkageName; + W.printEnum("Kind", uint16_t(Kind), getSymbolTypeNames()); W.printHex("PtrParent", Proc.Header.PtrParent); W.printHex("PtrEnd", Proc.Header.PtrEnd); W.printHex("PtrNext", Proc.Header.PtrNext); |