summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2013-04-22 08:35:11 +0000
committerNico Rieck <nico.rieck@gmail.com>2013-04-22 08:35:11 +0000
commitc74142ab15d3d3cdf49214dc65b76cb932a9c1a6 (patch)
tree874dde93962610cc0bf48aca3d840f6c92ed8a79 /tools
parent92f5e268c9aad68ed58198ad14f4d32fd26c5db6 (diff)
downloadexternal_llvm-c74142ab15d3d3cdf49214dc65b76cb932a9c1a6.zip
external_llvm-c74142ab15d3d3cdf49214dc65b76cb932a9c1a6.tar.gz
external_llvm-c74142ab15d3d3cdf49214dc65b76cb932a9c1a6.tar.bz2
llvm-readobj: Dump more COFF auxiliary records
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-readobj/COFFDumper.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp
index 14f8b72..94aafa7 100644
--- a/tools/llvm-readobj/COFFDumper.cpp
+++ b/tools/llvm-readobj/COFFDumper.cpp
@@ -785,7 +785,12 @@ void COFFDumper::printSymbol(symbol_iterator SymI) {
if (error(getSymbolAuxData(Obj, Symbol + I, Aux)))
break;
- } else if (Symbol->StorageClass == COFF::IMAGE_SYM_CLASS_STATIC) {
+ DictScope AS(W, "AuxFileRecord");
+ W.printString("FileName", StringRef(Aux->FileName));
+
+ } else if (Symbol->StorageClass == COFF::IMAGE_SYM_CLASS_STATIC ||
+ (Symbol->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
+ Symbol->SectionNumber != COFF::IMAGE_SYM_UNDEFINED)) {
const coff_aux_section_definition *Aux;
if (error(getSymbolAuxData(Obj, Symbol + I, Aux)))
break;