[llvm] r180007 - llvm-readobj: Dump more COFF auxiliary records
Nico Rieck
nico.rieck at gmail.com
Mon Apr 22 01:35:11 PDT 2013
Author: nrieck
Date: Mon Apr 22 03:35:11 2013
New Revision: 180007
URL: http://llvm.org/viewvc/llvm-project?rev=180007&view=rev
Log:
llvm-readobj: Dump more COFF auxiliary records
Modified:
llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/COFFDumper.cpp?rev=180007&r1=180006&r2=180007&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp Mon Apr 22 03:35:11 2013
@@ -785,7 +785,12 @@ void COFFDumper::printSymbol(symbol_iter
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;
More information about the llvm-commits
mailing list