Show symbol size as well as address (not applicable for Mach-O).
+.. option:: --quiet
+
+ Suppress 'no symbols' diagnostic.
+
.. option:: --radix=<RADIX>, -t
Specify the radix of the symbol address(es). Values accepted are *d* (decimal),
cl::alias PrintFileNameo("o", cl::desc("Alias for --print-file-name"),
cl::aliasopt(PrintFileName), cl::Grouping);
+cl::opt<bool> Quiet("quiet", cl::desc("Suppress 'no symbols' diagnostic"),
+ cl::cat(NMCat));
+
cl::opt<bool> DebugSyms("debug-syms",
cl::desc("Show all symbols, even debugger only"),
cl::cat(NMCat));
CurrentFilename = Obj.getFileName();
- if (Symbols.empty() && SymbolList.empty()) {
+ if (Symbols.empty() && SymbolList.empty() && !Quiet) {
writeFileName(errs(), ArchiveName, ArchitectureName);
errs() << "no symbols\n";
}