Lines Matching refs:opts

93 namespace opts {
171 } // namespace opts
211 opts::Addrsig = Args.hasArg(OPT_addrsig);
212 opts::All = Args.hasArg(OPT_all);
213 opts::ArchSpecificInfo = Args.hasArg(OPT_arch_specific);
214 opts::BBAddrMap = Args.hasArg(OPT_bb_addr_map);
215 opts::CGProfile = Args.hasArg(OPT_cg_profile);
216 opts::Decompress = Args.hasArg(OPT_decompress);
217 opts::Demangle = Args.hasFlag(OPT_demangle, OPT_no_demangle, false);
218 opts::DependentLibraries = Args.hasArg(OPT_dependent_libraries);
219 opts::DynRelocs = Args.hasArg(OPT_dyn_relocations);
220 opts::DynamicSymbols = Args.hasArg(OPT_dyn_syms);
221 opts::ExpandRelocs = Args.hasArg(OPT_expand_relocs);
222 opts::ExtraSymInfo = Args.hasArg(OPT_extra_sym_info);
223 opts::FileHeaders = Args.hasArg(OPT_file_header);
224 opts::Headers = Args.hasArg(OPT_headers);
225 opts::HexDump = Args.getAllArgValues(OPT_hex_dump_EQ);
226 opts::Relocations = Args.hasArg(OPT_relocs);
227 opts::SectionData = Args.hasArg(OPT_section_data);
228 opts::SectionDetails = Args.hasArg(OPT_section_details);
229 opts::SectionHeaders = Args.hasArg(OPT_section_headers);
230 opts::SectionRelocations = Args.hasArg(OPT_section_relocations);
231 opts::SectionSymbols = Args.hasArg(OPT_section_symbols);
233 opts::SectionMapping = cl::BOU_TRUE;
235 opts::SectionMapping = cl::BOU_FALSE;
237 opts::SectionMapping = cl::BOU_UNSET;
238 opts::PrintStackSizes = Args.hasArg(OPT_stack_sizes);
239 opts::PrintStackMap = Args.hasArg(OPT_stackmap);
240 opts::StringDump = Args.getAllArgValues(OPT_string_dump_EQ);
241 opts::StringTable = Args.hasArg(OPT_string_table);
242 opts::Symbols = Args.hasArg(OPT_symbols);
243 opts::UnwindInfo = Args.hasArg(OPT_unwind);
246 opts::DynamicTable = Args.hasArg(OPT_dynamic_table);
247 opts::ELFLinkerOptions = Args.hasArg(OPT_elf_linker_options);
250 opts::Output = StringSwitch<opts::OutputStyleTy>(OutputStyleChoice)
251 .Case("LLVM", opts::OutputStyleTy::LLVM)
252 .Case("GNU", opts::OutputStyleTy::GNU)
253 .Case("JSON", opts::OutputStyleTy::JSON)
254 .Default(opts::OutputStyleTy::UNKNOWN);
255 if (opts::Output == opts::OutputStyleTy::UNKNOWN) {
261 opts::GnuHashTable = Args.hasArg(OPT_gnu_hash_table);
262 opts::HashSymbols = Args.hasArg(OPT_hash_symbols);
263 opts::HashTable = Args.hasArg(OPT_hash_table);
264 opts::HashHistogram = Args.hasArg(OPT_histogram);
265 opts::Memtag = Args.hasArg(OPT_memtag);
266 opts::NeededLibraries = Args.hasArg(OPT_needed_libs);
267 opts::Notes = Args.hasArg(OPT_notes);
268 opts::PrettyPrint = Args.hasArg(OPT_pretty_print);
269 opts::ProgramHeaders = Args.hasArg(OPT_program_headers);
270 opts::RawRelr = Args.hasArg(OPT_raw_relr);
271 opts::SectionGroups = Args.hasArg(OPT_section_groups);
282 opts::SortKeys.push_back(KeyType);
285 opts::VersionInfo = Args.hasArg(OPT_version_info);
288 opts::MachODataInCode = Args.hasArg(OPT_macho_data_in_code);
289 opts::MachODysymtab = Args.hasArg(OPT_macho_dysymtab);
290 opts::MachOIndirectSymbols = Args.hasArg(OPT_macho_indirect_symbols);
291 opts::MachOLinkerOptions = Args.hasArg(OPT_macho_linker_options);
292 opts::MachOSegment = Args.hasArg(OPT_macho_segment);
293 opts::MachOVersionMin = Args.hasArg(OPT_macho_version_min);
296 opts::CodeView = Args.hasArg(OPT_codeview);
297 opts::CodeViewEnableGHash = Args.hasArg(OPT_codeview_ghash);
298 opts::CodeViewMergedTypes = Args.hasArg(OPT_codeview_merged_types);
299 opts::CodeViewSubsectionBytes = Args.hasArg(OPT_codeview_subsection_bytes);
300 opts::COFFBaseRelocs = Args.hasArg(OPT_coff_basereloc);
301 opts::COFFDebugDirectory = Args.hasArg(OPT_coff_debug_directory);
302 opts::COFFDirectives = Args.hasArg(OPT_coff_directives);
303 opts::COFFExports = Args.hasArg(OPT_coff_exports);
304 opts::COFFImports = Args.hasArg(OPT_coff_imports);
305 opts::COFFLoadConfig = Args.hasArg(OPT_coff_load_config);
306 opts::COFFResources = Args.hasArg(OPT_coff_resources);
307 opts::COFFTLSDirectory = Args.hasArg(OPT_coff_tls_directory);
310 opts::XCOFFAuxiliaryHeader = Args.hasArg(OPT_auxiliary_header);
311 opts::XCOFFLoaderSectionHeader = Args.hasArg(OPT_loader_section_header);
312 opts::XCOFFLoaderSectionSymbol = Args.hasArg(OPT_loader_section_symbols);
313 opts::XCOFFLoaderSectionRelocation =
315 opts::XCOFFExceptionSection = Args.hasArg(OPT_exception_section);
317 opts::InputFilenames = Args.getAllArgValues(OPT_INPUT);
377 if (!opts::SortKeys.empty()) {
380 for (SortSymbolKeyTy Key : opts::SortKeys) {
404 Dumper->printFileSummary(FileStr, Obj, opts::InputFilenames, A);
406 if (opts::FileHeaders)
411 if (Obj.isXCOFF() && opts::XCOFFAuxiliaryHeader)
419 if (opts::SectionDetails || opts::SectionHeaders) {
420 if (opts::Output == opts::GNU && opts::SectionDetails)
426 if (opts::HashSymbols)
428 if (opts::ProgramHeaders || opts::SectionMapping == cl::BOU_TRUE)
429 Dumper->printProgramHeaders(opts::ProgramHeaders, opts::SectionMapping);
430 if (opts::DynamicTable)
432 if (opts::NeededLibraries)
434 if (opts::Relocations)
436 if (opts::DynRelocs)
438 if (opts::UnwindInfo)
440 if (opts::Symbols || opts::DynamicSymbols)
441 Dumper->printSymbols(opts::Symbols, opts::DynamicSymbols,
442 opts::ExtraSymInfo, SymComp);
443 if (!opts::StringDump.empty())
444 Dumper->printSectionsAsString(Obj, opts::StringDump, opts::Decompress);
445 if (!opts::HexDump.empty())
446 Dumper->printSectionsAsHex(Obj, opts::HexDump, opts::Decompress);
447 if (opts::HashTable)
449 if (opts::GnuHashTable)
451 if (opts::VersionInfo)
453 if (opts::StringTable)
456 if (opts::DependentLibraries)
458 if (opts::ELFLinkerOptions)
460 if (opts::ArchSpecificInfo)
462 if (opts::SectionGroups)
464 if (opts::HashHistogram)
466 if (opts::CGProfile)
468 if (opts::BBAddrMap)
470 if (opts::Addrsig)
472 if (opts::Notes)
474 if (opts::Memtag)
478 if (opts::COFFImports)
480 if (opts::COFFExports)
482 if (opts::COFFDirectives)
484 if (opts::COFFBaseRelocs)
486 if (opts::COFFDebugDirectory)
488 if (opts::COFFTLSDirectory)
490 if (opts::COFFResources)
492 if (opts::COFFLoadConfig)
494 if (opts::CGProfile)
496 if (opts::Addrsig)
498 if (opts::CodeView)
500 if (opts::CodeViewMergedTypes)
503 opts::CodeViewEnableGHash);
506 if (opts::MachODataInCode)
508 if (opts::MachOIndirectSymbols)
510 if (opts::MachOLinkerOptions)
512 if (opts::MachOSegment)
514 if (opts::MachOVersionMin)
516 if (opts::MachODysymtab)
518 if (opts::CGProfile)
523 if (opts::XCOFFLoaderSectionHeader || opts::XCOFFLoaderSectionSymbol ||
524 opts::XCOFFLoaderSectionRelocation)
525 Dumper->printLoaderSection(opts::XCOFFLoaderSectionHeader,
526 opts::XCOFFLoaderSectionSymbol,
527 opts::XCOFFLoaderSectionRelocation);
529 if (opts::XCOFFExceptionSection)
533 if (opts::PrintStackMap)
535 if (opts::PrintStackSizes)
630 if (opts::Output == opts::JSON)
632 fouts(), opts::PrettyPrint ? 2 : 0, std::make_unique<ListScope>());
661 opts::Output = opts::GNU;
665 if (opts::InputFilenames.empty()) {
669 if (opts::All) {
670 opts::FileHeaders = true;
671 opts::XCOFFAuxiliaryHeader = true;
672 opts::ProgramHeaders = true;
673 opts::SectionHeaders = true;
674 opts::Symbols = true;
675 opts::Relocations = true;
676 opts::DynamicTable = true;
677 opts::Notes = true;
678 opts::VersionInfo = true;
679 opts::UnwindInfo = true;
680 opts::SectionGroups = true;
681 opts::HashHistogram = true;
682 if (opts::Output == opts::LLVM) {
683 opts::Addrsig = true;
684 opts::PrintStackSizes = true;
686 opts::Memtag = true;
689 if (opts::Headers) {
690 opts::FileHeaders = true;
691 opts::XCOFFAuxiliaryHeader = true;
692 opts::ProgramHeaders = true;
693 opts::SectionHeaders = true;
698 for (const std::string &I : opts::InputFilenames)
701 if (opts::CodeViewMergedTypes) {
702 if (opts::CodeViewEnableGHash)