COFF: Print directive section contents if /verbose.

llvm-svn: 241384
This commit is contained in:
Rui Ueyama 2015-07-04 01:39:11 +00:00
parent 78937c2ae5
commit a3d463df6f
1 changed files with 5 additions and 1 deletions

View File

@ -101,8 +101,12 @@ std::error_code SymbolTable::readObjects() {
if (auto EC = addSymbol(Sym)) if (auto EC = addSymbol(Sym))
return EC; return EC;
StringRef S = File->getDirectives(); StringRef S = File->getDirectives();
if (!S.empty()) if (!S.empty()) {
Directives.push_back(S); Directives.push_back(S);
if (Config->Verbose)
llvm::outs() << "Directives: " << File->getShortName()
<< ": " << S << "\n";
}
} }
ObjectQueue.clear(); ObjectQueue.clear();