[lld] r241384 - COFF: Print directive section contents if /verbose.
Rui Ueyama
ruiu at google.com
Fri Jul 3 18:39:11 PDT 2015
Author: ruiu
Date: Fri Jul 3 20:39:11 2015
New Revision: 241384
URL: http://llvm.org/viewvc/llvm-project?rev=241384&view=rev
Log:
COFF: Print directive section contents if /verbose.
Modified:
lld/trunk/COFF/SymbolTable.cpp
Modified: lld/trunk/COFF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=241384&r1=241383&r2=241384&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.cpp (original)
+++ lld/trunk/COFF/SymbolTable.cpp Fri Jul 3 20:39:11 2015
@@ -101,8 +101,12 @@ std::error_code SymbolTable::readObjects
if (auto EC = addSymbol(Sym))
return EC;
StringRef S = File->getDirectives();
- if (!S.empty())
+ if (!S.empty()) {
Directives.push_back(S);
+ if (Config->Verbose)
+ llvm::outs() << "Directives: " << File->getShortName()
+ << ": " << S << "\n";
+ }
}
ObjectQueue.clear();
More information about the llvm-commits
mailing list