diff options
author | Rui Ueyama <ruiu@google.com> | 2015-07-04 04:39:11 +0300 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-07-04 04:39:11 +0300 |
commit | a3d463df6fb6896135eb29e6c39a7c9bebc64c8d (patch) | |
tree | ecbaae958608448737173d713113c7496134f75e /lld | |
parent | 78937c2ae54cda926dba2ab2a3fa4346cd2e7940 (diff) |
COFF: Print directive section contents if /verbose.
llvm-svn: 241384
Diffstat (limited to 'lld')
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 0bc8ff3fafaa..00c0e21be873 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -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(); |