Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-07-04 04:39:11 +0300
committerRui Ueyama <ruiu@google.com>2015-07-04 04:39:11 +0300
commita3d463df6fb6896135eb29e6c39a7c9bebc64c8d (patch)
treeecbaae958608448737173d713113c7496134f75e /lld
parent78937c2ae54cda926dba2ab2a3fa4346cd2e7940 (diff)
COFF: Print directive section contents if /verbose.
llvm-svn: 241384
Diffstat (limited to 'lld')
-rw-r--r--lld/COFF/SymbolTable.cpp6
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();