reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/raw_ostream.h
  488 raw_ostream &outs();

References

examples/BrainF/BrainFDriver.cpp
  118   raw_ostream *out = &outs();
  161     outs() << "------- Running JIT -------\n";
  180   if (out != &outs())
examples/Fibonacci/fibonacci.cpp
  145   outs() << "Result: " << GV.IntVal << "\n";
examples/HowToUseJIT/HowToUseJIT.cpp
  125   outs() << "We just constructed this LLVM module:\n\n" << *M;
  126   outs() << "\n\nRunning foo: ";
  127   outs().flush();
  134   outs() << "Result: " << gv.IntVal << "\n";
examples/HowToUseLLJIT/HowToUseLLJIT.cpp
   79   outs() << "add1(42) = " << Result << "\n";
examples/Kaleidoscope/Chapter8/toy.cpp
 1266   outs() << "Wrote " << Filename << "\n";
examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp
   67   outs() << "add1(42) = " << Result << "\n";
examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp
   76   outs() << "add1(42) = " << Result << "\n";
examples/ModuleMaker/ModuleMaker.cpp
   64   WriteBitcodeToFile(*M, outs());
lib/DebugInfo/PDB/PDBSymbol.cpp
  124   outs() << "\n";
  125   defaultDump(outs(), 0, PdbSymbolIdField::All, PdbSymbolIdField::None);
  126   outs().flush();
  132   outs() << "\n";
  134     outs() << Stat.first << ": " << Stat.second << "\n";
  136   outs().flush();
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
  424   outs() << Buffer;
lib/LTO/LTO.cpp
 1295     ThinLTO.CombinedIndex.dumpSCCs(outs());
lib/MC/MCParser/AsmParser.cpp
 5725   llvm::outs() << StrTok.getStringContents() << '\n';
lib/Support/CommandLine.cpp
 1655   outs().indent(Indent - FirstLineIndentedBy)
 1659     outs().indent(Indent) << Split.first << "\n";
 1665   outs() << PrintArg(ArgStr);
 1695   outs() << PrintArg(O.ArgStr);
 1700       outs() << " <" << getValueStr(O, ValName) << ">...";
 1702       outs() << "=<" << getValueStr(O, ValName) << '>';
 1711   outs() << PrintArg(O.ArgStr);
 1712   outs().indent(GlobalWidth - O.ArgStr.size());
 1872           outs() << PrintArg(O.ArgStr);
 1880     outs() << PrintArg(O.ArgStr) << EqValue;
 1891       outs() << OptionPrefix << OptionName;
 1893         outs() << EmptyOption;
 1898         outs().indent(NumSpaces) << ArgHelpPrefix << "  " << Description;
 1899       outs() << '\n';
 1903       outs() << "  " << O.HelpStr << '\n';
 1906       outs() << "    " << PrintArg(Option);
 1920   outs() << "  " << PrintArg(O.ArgStr);
 1921   outs().indent(GlobalWidth - O.ArgStr.size());
 1928     outs() << "= " << getOption(i);
 1931     outs().indent(NumSpaces) << " (default: ";
 1935       outs() << getOption(j);
 1938     outs() << ")\n";
 1941   outs() << "= *unknown option value*\n";
 1980   outs() << "= " << V;
 1982   outs().indent(NumSpaces) << " (default: ";
 1984     outs() << D.getValue();
 1986     outs() << "*no default*";
 1987   outs() << ")\n";
 1994   outs() << "= *cannot print option value*\n";
 2067       outs() << "  " << S.first;
 2069         outs().indent(MaxSubLen - strlen(S.first));
 2070         outs() << " - " << S.second->getDescription();
 2072       outs() << "\n";
 2103       outs() << "OVERVIEW: " << GlobalParser->ProgramOverview << "\n";
 2106       outs() << "USAGE: " << GlobalParser->ProgramName;
 2108         outs() << " [subcommand]";
 2109       outs() << " [options]";
 2112         outs() << "SUBCOMMAND '" << Sub->getName()
 2115       outs() << "USAGE: " << GlobalParser->ProgramName << " " << Sub->getName()
 2121         outs() << " --" << Opt->ArgStr;
 2122       outs() << " " << Opt->HelpStr;
 2127       outs() << " " << ConsumeAfterOpt->HelpStr;
 2135       outs() << "\n\n";
 2136       outs() << "SUBCOMMANDS:\n\n";
 2138       outs() << "\n";
 2139       outs() << "  Type \"" << GlobalParser->ProgramName
 2144     outs() << "\n\n";
 2151     outs() << "OPTIONS:\n";
 2156       outs() << I;
 2226       outs() << "\n";
 2227       outs() << (*Category)->getName() << ":\n";
 2231         outs() << (*Category)->getDescription() << "\n\n";
 2233         outs() << "\n";
 2238         outs() << "  This option category has no options.\n";
 2370     raw_ostream &OS = outs();
 2404       OverrideVersionPrinter(outs());
 2412       outs() << '\n';
 2414         I(outs());
lib/Support/DebugCounter.cpp
   30     outs() << "  -" << ArgStr;
   39       outs() << "    =" << Info.first;
   40       outs().indent(NumSpaces) << " -   " << Info.second << '\n';
lib/Support/FileOutputBuffer.cpp
   93       llvm::outs() << StringRef((const char *)Buffer.base(), BufferSize);
   94       llvm::outs().flush();
lib/Support/FormattedStream.cpp
   91   static formatted_raw_ostream S(outs());
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
  133     outs() << "        # " << FunctionCount << " functions in section.";
  141       outs() << "        .local ";
  149             outs() << ", ";
  150           outs() << WebAssembly::anyTypeToString(Type);
  155   outs() << "\n";
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
   91     Table.PrintHelp(outs(), "llvm-dlltool [options] file...", "llvm-dlltool",
   93     llvm::outs() << "\nTARGETS: i386, i386:x86-64, arm, arm64\n";
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  140     llvm::outs() << Name << '\n';
  291     Table.PrintHelp(outs(), "llvm-lib [options] file...", "LLVM Lib");
tools/bugpoint/BugDriver.cpp
  141   outs() << "Read input file      : '" << Filenames[0] << "'\n";
  148     outs() << "Linking in input file: '" << Filenames[i] << "'\n";
  153   outs() << "*** All input ok\n";
  177     outs() << "Running selected passes on program to test for crash: ";
  187   outs() << "Running the code generator to test for a crash: ";
  189     outs() << toString(std::move(E));
  192   outs() << '\n';
  200     outs() << "Generating reference output from raw program: ";
  216   outs() << "*** Checking the code generator...\n";
  223     outs() << "\n*** Output matches: Debugging miscompilation!\n";
  231   outs() << "\n*** Input program does not match reference diff!\n";
  232   outs() << "Debugging code generator problem!\n";
  245     outs() << " " << Funcs[i]->getName();
  247     outs() << "... <" << Funcs.size() << " total>";
  248   outs().flush();
  256     outs() << " " << GVs[i]->getName();
  258     outs() << "... <" << GVs.size() << " total>";
  259   outs().flush();
tools/bugpoint/CrashDebugger.cpp
   89     outs() << "Checking to see if these passes crash: "
  105   outs() << "Checking to see if these passes crash: " << getPassesString(Suffix)
  159   outs() << "Checking for crash with only these global variables: ";
  161   outs() << ": ";
  254   outs() << "Checking for crash with only these functions: ";
  256   outs() << ": ";
  452   outs() << "Checking for crash with only these blocks:";
  457     outs() << " " << BBs[i]->getName();
  459     outs() << "... <" << Blocks.size() << " total>";
  460   outs() << ": ";
  571   outs() << "Checking for crash with changing conditionals to always jump to "
  577     outs() << " " << BBs[i]->getName();
  579     outs() << "... <" << Blocks.size() << " total>";
  580   outs() << ": ";
  675   outs() << "Checking for crash with CFG simplifying:";
  680     outs() << " " << BBs[i]->getName();
  682     outs() << "... <" << Blocks.size() << " total>";
  683   outs() << ": ";
  769   outs() << "Checking for crash with only " << Instructions.size();
  771     outs() << " instruction: ";
  773     outs() << " instructions: ";
  837   outs() << "Checking for crash with only these named metadata nodes:";
  840     outs() << " " << NamedMDs[i];
  842     outs() << "... <" << NamedMDs.size() << " total>";
  843   outs() << ": ";
  907   outs() << "Checking for crash with only " << OldMDNodeOps.size();
  909     outs() << " named metadata operand: ";
  911     outs() << " named metadata operands: ";
  972   outs() << "\nChecking to see if we can delete global inits: ";
  976     outs() << "\n*** Able to remove all global initializers!\n";
  981   outs() << "  - Removing all global inits hides problem!\n";
  989     outs() << "\n*** Attempting to reduce the number of global initializers "
 1027     outs() << "\n*** Attempting to reduce testcase by deleting instruc"
 1063               outs() << "Checking instruction: " << *I;
 1105     outs() << "\n*** Attempting to reduce the number of functions "
 1124     outs() << "\n*** Attempting to reduce the number of function attributes in "
 1214     outs() << "\n*** Attempting to strip the debug info: ";
 1218     outs() << "\n*** Attempting to strip the debug type info: ";
 1226       outs() << "\n*** Attempting to remove named metadata: ";
 1253     outs() << "\n*** Attempting to perform final cleanups: ";
 1277   outs() << "\n*** Debugging optimizer crash!\n";
 1286   outs() << "\n*** Found crashing pass"
tools/bugpoint/ExecutionDriver.cpp
  142   outs() << "Initializing execution environment: ";
  206     outs() << Message;
  251     outs() << Message << "\nExiting.\n";
  257     outs() << Message << "\nExiting.\n";
  356       outs()
  431   outs() << "\nReference output is: " << ReferenceOutputFile << "\n\n";
tools/bugpoint/ExtractFunction.cpp
  157     outs() << "*** Loop extraction failed: ";
  159     outs() << "*** Sorry. :(  Please report a bug!\n";
  376     outs() << "*** Basic Block extraction failed!\n";
  416     outs() << "*** Basic Block extraction failed, please report a bug!\n";
tools/bugpoint/FindBugs.cpp
   25   outs() << "Starting bug finding procedure...\n\n";
   31   outs() << "\n";
   33     outs() << "Generating reference output from raw program: \n";
   49     outs() << "Running selected passes on program to test for crash: ";
   51       outs() << "-" << PassesToRun[i] << " ";
   56       outs() << "\n";
   57       outs() << "Optimizer passes caused failure!\n\n";
   60       outs() << "Combination " << num << " optimized successfully!\n";
   66     outs() << "Running the code generator to test for a crash: ";
   68       outs() << "\n*** compileProgram threw an exception: ";
   69       outs() << toString(std::move(E));
   72     outs() << '\n';
   78     outs() << "*** Checking if passes caused miscompliation:\n";
   85       outs() << "\n*** diffProgram returned true!\n";
   90     outs() << "\n*** diff'd output matches!\n";
   94     outs() << "\n\n";
tools/bugpoint/Miscompilation.cpp
   65   outs() << "Checking to see if '" << getPassesString(Suffix)
   87     outs() << " nope.\n";
   95   outs() << " yup.\n"; // No miscompilation!
  102   outs() << "Checking to see if '" << getPassesString(Prefix)
  128     outs() << " nope.\n";
  132   outs() << " yup.\n"; // No miscompilation!
  150   outs() << "Checking to see if '" << getPassesString(Suffix)
  174     outs() << " nope.\n";
  179   outs() << " yup.\n"; // No miscompilation!
  252   outs() << "Checking to see if the program is misoptimized when "
  257   outs() << '\n';
  368     outs() << "  Testing after loop extraction:\n";
  386       outs() << "*** Loop extraction masked the problem.  Undoing.\n";
  411     outs() << "*** Loop extraction successful!\n";
  488   outs() << "Checking to see if the program is misoptimized when all ";
  490     outs() << "but these " << BBs.size() << " blocks are extracted: ";
  492       outs() << BBs[i]->getName() << " ";
  494       outs() << "...";
  496     outs() << "blocks are extracted.";
  498   outs() << '\n';
  635   outs() << "\n*** The following function"
  639   outs() << '\n';
  660       outs() << "\n*** The following function"
  664       outs() << '\n';
  683       outs() << "\n*** The following function"
  687       outs() << '\n';
  702   outs() << "  Optimizing functions being tested: ";
  714   outs() << "done.\n";
  716   outs() << "  Checking to see if the merged program executes correctly: ";
  722     outs() << (Broken ? " nope.\n" : " yup.\n");
  747   outs() << "\n*** Found miscompiling pass"
  758   outs() << "Outputting reduced bitcode files which expose the problem:\n";
  765   outs() << "  Non-optimized portion: ";
  769   outs() << "  Portion that is input to optimizer: ";
 1011       outs() << "\n*** The \"safe\" i.e. 'known good' backend cannot match "
 1073   outs() << "You can reproduce the problem with the command line: \n";
 1075     outs() << "  lli -load " << *SharedObject << " " << TestModuleBC;
 1077     outs() << "  llc " << TestModuleBC << " -o " << TestModuleBC << ".s\n";
 1078     outs() << "  cc " << *SharedObject << " " << TestModuleBC.str() << ".s -o "
 1080     outs() << "  ./" << TestModuleBC << ".exe";
 1083     outs() << " " << InputArgv[i];
 1084   outs() << '\n';
 1085   outs() << "The shared object was created with:\n  llc -march=c "
 1089     outs() << " -G"; // Compile a shared library, `-G' for Sparc
 1091     outs() << " -fPIC -shared"; // `-shared' for Linux/X86, maybe others
 1093   outs() << " -fno-strict-aliasing\n";
tools/bugpoint/OptimizerDriver.cpp
  101   outs() << "Emitted bitcode to '" << Filename << "'\n";
  104   outs() << "\n*** You can reproduce the problem with: ";
  106     outs() << "valgrind ";
  107   outs() << "opt " << Filename;
  109     outs() << " -load " << PluginLoader::getPlugin(i);
  111   outs() << " " << getPassesString(PassesToRun) << "\n";
  135   outs().flush();
  250       outs() << "Success!\n";
  252       outs() << "Exited with error code '" << result << "'\n";
  255         outs() << "Execute failed: " << ErrMsg << "\n";
  257         outs() << "Crashed: " << ErrMsg << "\n";
  260       outs() << "Dumped core\n";
tools/bugpoint/ToolRunner.cpp
  192   outs() << "<lli>";
  193   outs().flush();
  460   outs() << (UseIntegratedAssembler ? "<llc-ia>" : "<llc>");
  461   outs().flush();
  578   outs() << "<jit>";
  579   outs().flush();
  685   outs() << "<CC>";
  686   outs().flush();
  732   outs() << "<program>";
  733   outs().flush();
  757     outs() << "<run remotely>";
  758     outs().flush();
  829   outs() << "<CC>";
  830   outs().flush();
tools/bugpoint/bugpoint.cpp
  185     outs() << "Override triple set to '" << TargetTriple.getTriple() << "'\n";
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 3105     llvm::outs() << "\n*** Dumping AST Record Layout\n";
 3106     DumpRecordLayout(D, llvm::outs(), getLangOpts().DumpRecordLayoutsSimple);
tools/clang/lib/AST/VTableBuilder.cpp
 1004       dumpLayout(llvm::outs());
 2540       dumpLayout(llvm::outs());
 3599     dumpMethodLocations(RD, NewMethodLocations, llvm::outs());
tools/clang/lib/Analysis/plugins/CheckerOptionHandling/CheckerOptionHandling.cpp
   16   llvm::outs() << "Example option is set to "
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
  775     llvm::outs() << "\n*** Dumping IRgen Record Layout\n";
  776     llvm::outs() << "Record: ";
  777     D->dump(llvm::outs());
  778     llvm::outs() << "\nLayout: ";
  779     RL->print(llvm::outs());
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1367     dump(llvm::outs(), NameValue, Expressions, Regions);
tools/clang/lib/Driver/Driver.cpp
 1530   getOpts().PrintHelp(llvm::outs(), Usage.c_str(), DriverTitle.c_str(),
 1616     llvm::outs() << '\n';
 1646   llvm::outs() << llvm::join(SuggestedCompletions, "\n") << '\n';
 1654     llvm::outs() << C.getDefaultToolChain().getTripleString() << '\n';
 1661     llvm::outs() << CLANG_VERSION_STRING << "\n";
 1666     PrintDiagnosticCategories(llvm::outs());
 1678     PrintVersion(C, llvm::outs());
 1704     llvm::outs() << ResourceDir << '\n';
 1709     llvm::outs() << "programs: =";
 1713         llvm::outs() << llvm::sys::EnvPathSeparator;
 1714       llvm::outs() << Path;
 1717     llvm::outs() << "\n";
 1718     llvm::outs() << "libraries: =" << ResourceDir;
 1724       llvm::outs() << llvm::sys::EnvPathSeparator;
 1727         llvm::outs() << sysroot << Path.substr(1);
 1729         llvm::outs() << Path;
 1731     llvm::outs() << "\n";
 1738     llvm::outs() << GetFilePath(A->getValue(), TC) << "\n";
 1747       llvm::outs() << GetProgramPath(ProgName, TC);
 1749     llvm::outs() << "\n";
 1765       llvm::outs() << TC.getCompilerRT(C.getArgs(), "builtins") << "\n";
 1768       llvm::outs() << GetFilePath("libgcc.a", TC) << "\n";
 1776       llvm::outs() << Multilib << "\n";
 1783       llvm::outs() << ".\n";
 1787       llvm::outs() << Suffix.substr(1) << "\n";
 1793     llvm::outs() << TC.getTripleString() << "\n";
 1799     llvm::outs() << Triple.getTriple() << "\n";
tools/clang/lib/Driver/Job.cpp
  320       llvm::outs() << llvm::sys::path::filename(Arg) << "\n";
  321     llvm::outs().flush();
tools/clang/lib/Frontend/ASTConsumers.cpp
   40         : Out(Out ? *Out : llvm::outs()), OwnedOut(std::move(Out)),
  120         : Out(Out ? *Out : llvm::outs()) {}
tools/clang/lib/Frontend/CompilerInstance.cpp
  590                                    llvm::outs()));
tools/clang/lib/Frontend/FrontendAction.cpp
   91     llvm::outs() << "PCH DECL: " << D->getDeclKindName();
   93       llvm::outs() << " - ";
   94       ND->printQualifiedName(llvm::outs());
   96     llvm::outs() << "\n";
tools/clang/lib/Frontend/FrontendActions.cpp
  385     displayTemplightEntry<true>(llvm::outs(), TheSema, Inst);
  390     displayTemplightEntry<false>(llvm::outs(), TheSema, Inst);
  707   llvm::raw_ostream &Out = OutFile.get()? *OutFile.get() : llvm::outs();
  868     llvm::outs().write((*Buffer)->getBufferStart(), Preamble);
  947   llvm::outs() << Output;
tools/clang/lib/Frontend/HeaderIncludeGen.cpp
   94       OutputFile = &llvm::outs();
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  189         llvm::outs(), "clang -cc1 [options] file...",
  247     ento::printCheckerHelp(llvm::outs(),
  258     ento::printCheckerConfigList(llvm::outs(),
  268     ento::printEnabledCheckerList(llvm::outs(),
  278     ento::printAnalyzerConfigList(llvm::outs());
tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp
   50   llvm::outs() << C.getSourceManager().getSpellingLineNumber(Loc) << " "
   55   llvm::outs() << "--BEGIN FUNCTION--\n";
   60   llvm::outs() << "--END FUNCTION--\n";
   91   llvm::outs().indent(Indentation);
   92   Call.dump(llvm::outs());
  108   llvm::outs().indent(Indentation);
  110     llvm::outs() << "Returning void\n";
  112     llvm::outs() << "Returning " << C.getSVal(CallE) << "\n";
tools/clang/tools/arcmt-test/arcmt-test.cpp
  184     transformPrinter.reset(new PrintTransforms(llvm::outs()));
  201     printResult(migration.getRemapper(), llvm::outs());
tools/clang/tools/c-index-test/core_main.cpp
  220   raw_ostream &OS = outs();
  274   PrintIndexDataConsumer DataConsumer(outs());
tools/clang/tools/clang-diff/ClangDiff.cpp
  467       printTree(llvm::outs(), Tree);
  470     llvm::outs() << R"({"filename":")";
  471     printJsonString(llvm::outs(), SourcePath);
  472     llvm::outs() << R"(","root":)";
  473     printNodeAsJson(llvm::outs(), Tree, Tree.getRootId());
  474     llvm::outs() << "}\n";
  504     llvm::outs() << HtmlDiffHeader << "<pre>";
  505     llvm::outs() << "<div id='L' class='code'>";
  506     printHtmlForNode(llvm::outs(), Diff, SrcTree, true, SrcTree.getRootId(), 0);
  507     llvm::outs() << "</div>";
  508     llvm::outs() << "<div id='R' class='code'>";
  509     printHtmlForNode(llvm::outs(), Diff, DstTree, false, DstTree.getRootId(),
  511     llvm::outs() << "</div>";
  512     llvm::outs() << "</pre></div></body></html>\n";
  519       llvm::outs() << "Match ";
  520       printNode(llvm::outs(), SrcTree, Src);
  521       llvm::outs() << " to ";
  522       printNode(llvm::outs(), DstTree, Dst);
  523       llvm::outs() << "\n";
  525     printDstChange(llvm::outs(), Diff, SrcTree, DstTree, Dst);
  529       llvm::outs() << "Delete ";
  530       printNode(llvm::outs(), SrcTree, Src);
  531       llvm::outs() << "\n";
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
   41     llvm::outs() << createCrossTUIndexString(Index);
tools/clang/tools/clang-format/ClangFormat.cpp
  260     outs() << Text.substr(From, Index - From);
  263       outs() << "&#10;";
  266       outs() << "&#13;";
  269       outs() << "&lt;";
  272       outs() << "&amp;";
  279   outs() << Text.substr(From);
  284     outs() << "<replacement "
  288     outs() << "</replacement>\n";
  355   outs() << "<?xml version='1.0'?>\n<replacements "
  359     outs() << " line='" << Status.Line << "'";
  360   outs() << ">\n";
  362     outs() << "<cursor>" << FormatChanges.getShiftedCodePosition(CursorPosition)
  366   outs() << "</replacements>\n";
  452         outs() << "{ \"Cursor\": "
  457           outs() << ", \"Line\": " << Status.Line;
  458         outs() << " }\n";
  460       Rewrite.getEditBuffer(ID).write(outs());
  501   outs() << Config << "\n";
tools/clang/tools/clang-import-test/clang-import-test.cpp
  331     CG.GetModule()->print(llvm::outs(), nullptr);
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  415         SelectedSubcommand->getSelection()->print(llvm::outs());
  511       llvm::outs() << *Result;
  520     llvm::outs() << "invoking action '" << Subcommand.getName() << "':\n";
  523       llvm::outs() << "  -selection=";
  524       R.getBegin().print(llvm::outs(), Context.getSources());
  525       llvm::outs() << " -> ";
  526       R.getEnd().print(llvm::outs(), Context.getSources());
  527       llvm::outs() << "\n";
tools/clang/tools/clang-refactor/TestSupport.cpp
  244       llvm::outs() << TestGroup.Ranges.size() << " '" << TestGroup.Name
  246       llvm::outs() << *CanonicalErrorMessage << "\n";
  248       llvm::outs() << TestGroup.Ranges.size() << " '" << TestGroup.Name
  250       if (printRewrittenSources(*CanonicalResult, llvm::outs()))
tools/clang/tools/clang-rename/ClangRename.cpp
  168       outs() << "clang-rename found name: " << PrevName << '\n';
  227       Rewrite.getEditBuffer(ID).write(outs());
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
  201   SharedStream DependencyOS(llvm::outs());
  222     llvm::outs() << "Running clang-scan-deps on " << Inputs.size()
tools/clang/tools/diagtool/diagtool_main.cpp
   20       return tool->run(argc - 2, &argv[2], llvm::outs());
tools/clang/tools/driver/cc1as_main.cpp
  579         llvm::outs(), "clang -cc1as [options] file...",
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  105     llvm::outs() << "REPRODUCER METAINFO: " << OS.str() << "\n";
  188     printReproducerInformation(llvm::outs(), InvocationInfo, *Report);
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
  163     WriteToYAML(llvm::outs());
  171     outs() << "============== " << File << " ==============\n";
  172     Rewrite.getEditBuffer(ID).write(llvm::outs());
  173     outs() << "\n============================================\n";
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  196   llvm::outs() << "Emiting docs in " << Format << " format.\n";
  240   llvm::outs() << "Mapping decls...\n";
  257   llvm::outs() << "Collecting infos...\n";
  266   llvm::outs() << "Reducing " << USRToBitcode.size() << " infos...\n";
  328   llvm::outs() << "Generating assets for docs...\n";
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  347     llvm::outs() << *ChangedCode;
  375     writeToJson(llvm::outs(), Context);
  399     writeToJson(llvm::outs(), Contexts.front());
  447     llvm::outs() << *ChangedCode;
  454   TextDiagnosticPrinter DiagnosticPrinter(outs(), &*DiagOpts);
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp
  136     llvm::outs() << "[\n";
  139       llvm::outs() << "  {\n";
  140       llvm::outs() << "    \"DeclarationName\": \"" << I->QualifiedName
  142       llvm::outs() << "    \"DeclarationType\": \"" << I->Kind << "\",\n";
  143       llvm::outs() << "    \"Templated\": " << (I->Templated ? "true" : "false")
  145       llvm::outs() << "  }";
  148         llvm::outs() << ",\n";
  150     llvm::outs() << "\n]\n";
  207     WriteToJson(llvm::outs());
tools/clang/tools/extra/clang-query/tool/ClangQuery.cpp
   77     if (!Q->run(llvm::outs(), QS))
  121       if (!Q->run(llvm::outs(), QS))
  140       Q->run(llvm::outs(), QS);
  141       llvm::outs().flush();
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp
   83     Rewrite.getEditBuffer(ID).write(outs());
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  104         DiagPrinter(new TextDiagnosticPrinter(llvm::outs(), &*DiagOpts)),
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  381           llvm::outs() << "'" << Check << "' is enabled in the " << It->second
  395     llvm::outs() << "Enabled checks:";
  397       llvm::outs() << "\n    " << CheckName;
  398     llvm::outs() << "\n\n";
  405     llvm::outs() << configurationAsText(
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
   47   llvm::outs() << llvm::formatv("{0} took {1:ms+n}.\n", Name, Duration);
   99       llvm::outs() << OS.str();
  148     llvm::outs() << llvm::formatv(OutputFormat, "Rank", "Symbol ID",
  152       llvm::outs() << llvm::formatv(OutputFormat, Rank++, Sym.ID.str(),
  171       llvm::outs()
  179         llvm::outs() << llvm::toString(SID.takeError()) << "\n";
  192       llvm::outs() << toYAML(Sym);
  195       llvm::outs() << "not found\n";
  218       llvm::outs()
  226         llvm::outs() << llvm::toString(SID.takeError()) << "\n";
  233         llvm::outs() << llvm::formatv(
  246         llvm::outs() << U.takeError();
  250         llvm::outs() << R << "\n";
  288     llvm::outs() << "Failed to open the index.\n";
  303       llvm::outs() << "dexp - Index explorer\nCommands:\n";
  305         llvm::outs() << llvm::formatv("{0,16} - {1}\n", C.Name, C.Description);
  306       llvm::outs() << "Get detailed command help with e.g. `find -help`.\n";
  322       llvm::outs() << "Unknown command. Try 'help'.\n";
tools/clang/tools/extra/clangd/indexer/IndexerMain.cpp
  131   llvm::outs() << Out;
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
  525   if (llvm::outs().is_displayed() && llvm::errs().is_displayed())
  632         stdin, llvm::outs(),
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
  256     TestConsumer.printUnmetExpectations(llvm::outs());
tools/clang/unittests/Tooling/RewriterTestContext.h
   40          DiagnosticPrinter(llvm::outs(), &*DiagOpts),
tools/dsymutil/DwarfLinker.cpp
  586     outs() << "Found valid debug map entry: " << ValidReloc.Mapping->getKey()
  656     outs() << "Keeping variable DIE:";
  660     DIE.dump(outs(), 8 /* Indent */, DumpOpts);
  693     outs() << "Keeping subprogram DIE:";
  697     DIE.dump(outs(), 8 /* Indent */, DumpOpts);
 2180     outs().indent(Indent);
 2181     outs() << "Found clang module reference " << PCMfile;
 2195       outs() << " [cached].\n";
 2199     outs() << " ...\n";
 2346     outs().indent(Indent);
 2347     outs() << "cloning .debug_info from " << Filename << "\n";
 2529       outs() << "copy parseable Swift interface " << InterfaceFile << " -> "
 2591       outs() << "DEBUG MAP OBJECT: " << LinkContext.DMO.getObjectFilename()
 2642         outs() << "No valid relocations found. Skipping.\n";
 2664         outs() << "Input compilation unit:";
 2668         CUDie.dump(outs(), 0, DumpOpts);
tools/dsymutil/MachODebugMapParser.cpp
  318   raw_ostream &OS(llvm::outs());
tools/dsymutil/MachOUtils.cpp
  109     outs() << "Running lipo\n";
  111       outs() << ' ' << Arg;
  112     outs() << "\n";
tools/dsymutil/dsymutil.cpp
  455         outs(), (std::string(argv[0]) + " [options] <input files>").c_str(),
  542         Map->print(outs());
tools/lld/COFF/Driver.cpp
 1145     outs() << getLLDVersion() << "\n";
tools/lld/COFF/DriverUtils.cpp
  910   COFFOptTable().PrintHelp(outs(),
tools/lld/Common/ErrorHandler.cpp
   61   outs().flush();
  157   outs() << msg << "\n";
  158   outs().flush();
tools/lld/ELF/DriverUtils.cpp
  148       outs(), (config->progName + " [options] file...").str().c_str(), "lld",
  150   outs() << "\n";
  157   outs() << config->progName << ": supported targets: elf\n";
tools/lld/ELF/MapFile.cpp
  216   outs() << left_justify(a, 49) << " " << b << "\n";
  247   outs() << "Cross Reference Table\n\n";
tools/lld/MinGW/Driver.cpp
   86       outs(), (std::string(argv0) + " [options] file...").c_str(), "lld",
   88   outs() << "\n";
  375     outs() << llvm::join(linkArgs, " ") << "\n";
tools/lld/lib/Driver/DarwinLdDriver.cpp
  385         table.PrintHelp(llvm::outs(),
tools/lld/wasm/Driver.cpp
  651     parser.PrintHelp(outs(),
  659     outs() << getLLDVersion() << "\n";
tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h
  548   Serializer(llvm::raw_ostream &stream = llvm::outs()) : m_stream(stream) {}
tools/lldb/source/Symbol/ClangASTContext.cpp
 4986           llvm::outs() << "warning: trying to determine the size of type ";
 4987           llvm::outs() << s.GetString() << "\n";
 4988           llvm::outs() << "without a valid ExecutionContext. this is not "
 4990           llvm::outs() << "backtrace:\n";
 4991           llvm::sys::PrintStackTrace(llvm::outs());
 4992           llvm::outs() << "\n";
tools/lldb/source/Utility/StructuredData.cpp
  132   json::OStream stream(llvm::outs(), pretty_print ? 2 : 0);
tools/lldb/tools/argdumper/argdumper.cpp
   18   llvm::outs() << json::Object({{"arguments", std::move(Arguments)}});
tools/lldb/tools/driver/Driver.cpp
  382     llvm::outs() << lldb::SBDebugger::GetVersionString() << '\n';
  393         llvm::outs() << python_path << '\n';
  395         llvm::outs() << "<PATH TOO LONG>\n";
  397       llvm::outs() << "<COULD NOT FIND PATH>\n";
  738   table.PrintHelp(llvm::outs(), usage_str.c_str(), "LLDB", false);
  775   llvm::outs() << examples;
tools/lldb/tools/lldb-instr/Instrument.cpp
  219       llvm::outs() << GetRegisterConstructorMacro(Record->getNameAsString(),
  225       llvm::outs() << GetRegisterMethodMacro(
  326     llvm::outs() << "{\n";
  331     llvm::outs() << "}\n";
tools/lldb/tools/lldb-test/lldb-test.cpp
  270   outs() << "Search context: {\n";
  273   outs() << "}\n";
  365   LinePrinter P(4, outs());
  452   outs() << formatv("Found {0} functions:\n", List.GetSize());
  455   outs() << Stream.GetData() << "\n";
  489   outs() << formatv("Found {0} blocks:\n", List.GetSize());
  492   outs() << Stream.GetData() << "\n";
  507     outs() << "Found namespace: "
  510     outs() << "Namespace not found.\n";
  534   outs() << formatv("Found {0} types:\n", Map.GetSize());
  537   outs() << Stream.GetData() << "\n";
  573   outs() << formatv("Found {0} variables:\n", List.GetSize());
  576   outs() << Stream.GetData() << "\n";
  584   outs() << Stream.GetData() << "\n";
  613   tu->print(outs());
  637   outs() << Stream.GetData() << "\n";
  649   outs() << "Found " << comp_units_count << " compile units.\n";
  656     outs() << "Processing '" << comp_unit->GetFilename().AsCString()
  665     outs() << "The line table contains " << count << " entries.\n";
  687   outs() << "The symbol information is verified.\n";
  803   outs() << "Module: " << InputFile << "\n";
  859   LinePrinter Printer(4, llvm::outs());
  929   outs() << formatv("Command: {0} = malloc(size={1}, alignment={2})\n", Label,
  932     outs() << "Malloc error: alignment is not a power of 2\n";
  947     outs() << formatv("Malloc error: {0}\n", ST);
  952   outs() << formatv("Malloc: address = {0:x}\n", Addr);
  956     outs() << "Malloc error: zero or unaligned allocation detected\n";
  965     outs() << "Malloc error: overlapping allocation detected"
  988   outs() << formatv("Command: free({0})\n", Label);
  991     outs() << "Free error: Invalid allocation label\n";
  999     outs() << formatv("Free error: {0}\n", ST);
 1006     outs() << formatv("Free: [{0:x}, {1:x})\n", Interval.start(),
 1027     outs() << formatv("Failed: {0}\n", Result.GetErrorData());
 1033     outs() << "Cannot use process to test IRMemoryMap\n";
tools/lldb/utils/lit-cpuid/lit-cpuid.cpp
   29     outs() << "sse\n";
   31     outs() << "avx\n";
   33     outs() << "avx512f\n";
tools/lli/lli.cpp
  723       outs() << "----- Module Start -----\n" << M << "----- Module End -----\n";
tools/llvm-ar/llvm-ar.cpp
  122     outs() << RanlibHelp;
  124     outs() << ArHelp;
  441     outs() << "Printing " << Name << "\n";
  446   outs().write(Data.data(), Data.size());
  452   outs() << ((mode & 004) ? "r" : "-");
  453   outs() << ((mode & 002) ? "w" : "-");
  454   outs() << ((mode & 001) ? "x" : "-");
  471     outs() << ' ' << UIDOrErr.get();
  474     outs() << '/' << GIDOrErr.get();
  477     outs() << ' ' << format("%6llu", Size.get());
  484     outs() << ' ' << formatv("{0:%b %e %H:%M %Y}", ModTimeInNs);
  485     outs() << ' ';
  492         outs() << sys::path::convert_to_slash(ParentDir) << '/';
  494     outs() << Name;
  496     outs() << Name;
  498       outs() << " 0x" << utohexstr(C.getDataOffset(), true);
  500   outs() << '\n';
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
  100   BCDumpOptions O(outs());
  109     outs() << "\n\n";
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  482                                      outs()) == MCDisassembler::Success;
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
   78       outs() << ">";
   80       outs() << " ";
   82     outs() << i << ": " << Lines[i - 1] << "\n";
   90   outs() << "Instruction: " << format_hex(InstrMeta.VMAddress, 2) << " ("
   92   Analysis.printInstruction(InstrMeta, outs());
   93   outs() << " \n";
   96     Graph.printToDOT(Analysis, outs());
  102     outs() << "Blacklist Match: " << BlacklistFilename << ":" << BlameLine
  105       outs() << "====> Unexpected Protected\n";
  107       outs() << "====> Expected Unprotected\n";
  113       outs() << "====> Expected Protected\n";
  117       outs() << "====> Unexpected Unprotected (BAD)\n";
  142       outs() << "-----------------------------------------------------\n";
  167         outs() << "  " << format_hex(Address.Address, 2) << " = "
  217     outs() << "No indirect CF instructions found.\n";
  221   outs() << formatv("\nTotal Indirect CF Instructions: {0}\n"
  238   outs() << "\nBlacklist Results:\n";
  240     outs() << "  " << BlacklistFilename << ":" << KV.first << " affects "
tools/llvm-config/llvm-config.cpp
  473   raw_ostream &OS = outs();
tools/llvm-cov/CodeCoverage.cpp
  772         outs() << SF << '\n';
  991       Report.renderFileReports(llvm::outs(), IgnoreFilenameFilters);
  993       Report.renderFileReports(llvm::outs(), SourceFiles);
 1001     Report.renderFunctionReports(SourceFiles, DC, llvm::outs());
 1044                                                        ViewOpts, outs());
 1052                                                        ViewOpts, outs());
tools/llvm-cov/CoverageReport.cpp
  343       outs() << "InstantiationGroup: " << GroupSummary.Name << " with "
tools/llvm-cov/SourceCoverageView.cpp
   25   if (OS == &outs())
   58     return OwnedStream(&outs());
tools/llvm-cov/gcov.cpp
   80   FI.print(llvm::outs(), SourceFile, GCNO, GCDA);
tools/llvm-cvtres/llvm-cvtres.cpp
  114     T.PrintHelp(outs(), "llvm-cvtres [options] file...", "Resource Converter");
  130       outs() << "Machine architecture not specified; assumed X64.\n";
  160     outs() << "Machine: " << machineToStr(MachineType) << '\n';
  183       outs() << "Number of resources: " << EntryNumber << "\n";
  193     Parser.printTree(outs());
tools/llvm-cxxdump/llvm-cxxdump.cpp
   46   WithColor::error(outs(), "") << "reading file: " << EC.message() << ".\n";
   47   outs().flush();
   52   logAllUnhandledErrors(std::move(Err), WithColor::error(outs()),
   54   outs().flush();
  347     outs() << VFTableName << '[' << Offset << "]: " << SymName << '\n';
  353       outs() << VBTableName << '[' << Idx << "]: " << Offset << '\n';
  360     outs() << COLName << "[IsImageRelative]: " << COL.Data[0] << '\n';
  361     outs() << COLName << "[OffsetToTop]: " << COL.Data[1] << '\n';
  362     outs() << COLName << "[VFPtrOffset]: " << COL.Data[2] << '\n';
  363     outs() << COLName << "[TypeDescriptor]: " << COL.Symbols[0] << '\n';
  364     outs() << COLName << "[ClassHierarchyDescriptor]: " << COL.Symbols[1]
  370     outs() << CHDName << "[AlwaysZero]: " << CHD.Data[0] << '\n';
  371     outs() << CHDName << "[Flags]: " << CHD.Data[1] << '\n';
  372     outs() << CHDName << "[NumClasses]: " << CHD.Data[2] << '\n';
  373     outs() << CHDName << "[BaseClassArray]: " << CHD.Symbols[0] << '\n';
  379     outs() << BCAName << '[' << Offset << "]: " << SymName << '\n';
  384     outs() << BCDName << "[TypeDescriptor]: " << BCD.Symbols[0] << '\n';
  385     outs() << BCDName << "[NumBases]: " << BCD.Data[0] << '\n';
  386     outs() << BCDName << "[OffsetInVBase]: " << BCD.Data[1] << '\n';
  387     outs() << BCDName << "[VBPtrOffset]: " << BCD.Data[2] << '\n';
  388     outs() << BCDName << "[OffsetInVBTable]: " << BCD.Data[3] << '\n';
  389     outs() << BCDName << "[Flags]: " << BCD.Data[4] << '\n';
  390     outs() << BCDName << "[ClassHierarchyDescriptor]: " << BCD.Symbols[1]
  396     outs() << TDName << "[VFPtr]: " << TD.Symbols[0] << '\n';
  397     outs() << TDName << "[AlwaysZero]: " << TD.AlwaysZero << '\n';
  398     outs() << TDName << "[MangledName]: ";
  399     outs().write_escaped(TD.MangledName.rtrim(StringRef("\0", 1)),
  407       outs() << TIName << "[Flags." << Name
  411       outs() << TIName << '[' << Name << "]: ";
  413       outs() << (Entry == TIEntries.end() ? "null" : Entry->second) << '\n';
  415     outs() << TIName << "[Flags]: " << TI.Flags << '\n';
  426     outs() << CTAName << "[NumEntries]: " << CTA.NumEntries << '\n';
  432       outs() << CTAName << '[' << Idx++ << "]: " << I->second << '\n';
  438       outs() << CTName << "[Flags." << Name
  441     outs() << CTName << "[Flags]: " << CT.Flags << '\n';
  444     outs() << CTName << "[TypeDescriptor]: " << CT.Symbols[0] << '\n';
  445     outs() << CTName << "[NonVirtualBaseAdjustmentOffset]: "
  447     outs() << CTName
  450     outs() << CTName << "[VirtualBaseAdjustmentOffset]: "
  452     outs() << CTName << "[Size]: " << CT.Size << '\n';
  453     outs() << CTName
  461     outs() << VTTName << '[' << VTTOffset << "]: " << VTTEntry << '\n';
  465     outs() << TIName << ": " << TIPair.second << '\n';
  480       outs() << VTableName << '[' << Offset << "]: ";
  481       outs() << VTableEntry;
  482       outs() << '\n';
  490       outs() << VTableName << '[' << Offset << "]: ";
  491       outs() << VTableEntry;
  492       outs() << '\n';
tools/llvm-cxxfilt/llvm-cxxfilt.cpp
  142       demangleLine(llvm::outs(), Mangled, true);
  145       demangleLine(llvm::outs(), Symbol, false);
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
   71     outs() << "  -" << O.ArgStr;
   78     outs() << "[=offset]";
tools/llvm-exegesis/lib/BenchmarkResult.cpp
  400     if (auto Err = writeYamlTo(State, outs()))
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  126     outs() << "Check generated assembly with: /usr/bin/objdump -d "
tools/llvm-exegesis/llvm-exegesis.cpp
  334   outs() << "Parsed " << Points.size() << " benchmark points\n";
tools/llvm-jitlink/llvm-jitlink.cpp
  436       outs() << "Link graph post-fixup:\n";
  437       G.dump(outs());
  454       outs() << "Relocated section contents for " << G.getName() << ":\n";
  455       dumpSectionContents(outs(), G);
  544     outs() << "Warning: --args passed to -noexec run will be ignored.\n";
  757     outs() << "Total size of all blocks before pruning: " << S.SizeBeforePruning
  827     S.dumpSessionInfo(outs());
tools/llvm-lipo/llvm-lipo.cpp
  291     T.PrintHelp(outs(), "llvm-lipo input[s] option[s]", "llvm-lipo");
  296     outs() << ToolName + "\n";
  519   printBinaryArchs(InputBinaries.front().getBinary(), outs());
  529       outs() << "Architectures in the fat file: " << Binary->getFileName()
  531       printBinaryArchs(Binary, outs());
  538       outs() << "Non-fat file: " << Binary->getFileName()
  540       printBinaryArchs(Binary, outs());
tools/llvm-lto/llvm-lto.cpp
  352     outs() << "Index " << Filename << " contains "
  373     outs() << Filename << ":\n";
  375       outs() << Module->getSymbolName(I) << "\n";
  396     outs() << Filename << ":\n";
  402       outs() << StringRef(S, L) << "\n";
  800         outs() << std::get<0>(BinName)->getBuffer();
  901         outs() << "Bitcode " << Filename << " contains ObjC\n";
  903         outs() << "Bitcode " << Filename << " does not contain ObjC\n";
 1048     outs() << "Wrote native object file '" << OutputName << "'\n";
tools/llvm-lto2/llvm-lto2.cpp
  361       outs() << "version: " << Hdr->Version << '\n';
  363         outs() << "producer: " << Hdr->Producer.get(BFC.StrtabForSymtab)
  370     outs() << "target triple: " << Input->getTargetTriple() << '\n';
  373     outs() << "source filename: " << Input->getSourceFileName() << '\n';
  376       outs() << "linker opts: " << Input->getCOFFLinkerOpts() << '\n';
  379       outs() << "dependent libraries:";
  381         outs() << " \"" << L << "\"";
  382       outs() << '\n';
  389         outs() << 'H';
  392         outs() << 'P';
  395         outs() << 'D';
  399       auto PrintBool = [&](char C, bool B) { outs() << (B ? C : '-'); };
  407       outs() << ' ' << Sym.getName() << '\n';
  410         outs() << "         size " << Sym.getCommonSize() << " align "
  415         outs() << "         comdat " << ComdatTable[Comdat] << '\n';
  418         outs() << "         fallback " << Sym.getCOFFWeakExternalFallback() << '\n';
  421         outs() << "         section " << Sym.getSectionName() << "\n";
  424     outs() << '\n';
tools/llvm-mt/llvm-mt.cpp
  111       outs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName()
  117     T.PrintHelp(outs(), "llvm-mt [options] file...", "Manifest Tool", false);
tools/llvm-nm/llvm-nm.cpp
  433     outs() << format(printFormat, NValue) << ' '
  437       outs() << " (indirect for ";
  438       outs() << format(printFormat, NValue) << ' ';
  442           outs() << "?)";
  444           outs() << IndirectName << ")";
  446         outs() << S.IndirectName << ")";
  448     outs() << "\n";
  457     outs() << SymbolAddrStr << ' ';
  463       outs() << "(common) ";
  465         outs() << "(alignment 2^" << (int)MachO::GET_COMM_ALIGN(NDesc) << ") ";
  468         outs() << "(prebound ";
  470         outs() << "(";
  473         outs() << "undefined [lazy bound]) ";
  476         outs() << "undefined [private lazy bound]) ";
  479         outs() << "undefined [private]) ";
  481         outs() << "undefined) ";
  485     outs() << "(absolute) ";
  488     outs() << "(indirect) ";
  495         outs() << "(LTO,CODE) ";
  497         outs() << "(LTO,DATA) ";
  499         outs() << "(LTO,RODATA) ";
  501         outs() << "(?,?) ";
  510         outs() << "(?,?) ";
  515         outs() << "(?,?) ";
  526     outs() << "(" << SegmentName << "," << SectionName << ") ";
  530     outs() << "(?) ";
  536       outs() << "[referenced dynamically] ";
  539         outs() << "weak private external ";
  541         outs() << "private external ";
  547           outs() << "weak external automatically hidden ";
  549           outs() << "weak external ";
  551         outs() << "external ";
  555       outs() << "non-external (was a private external) ";
  557       outs() << "non-external ";
  562       outs() << "[no dead strip] ";
  565       outs() << "[symbol resolver] ";
  567       outs() << "[alt entry] ";
  569       outs() << "[cold func] ";
  573     outs() << "[Thumb] ";
  576     outs() << S.Name << " (for ";
  581           outs() << "?)";
  583           outs() << IndirectName << ")";
  585         outs() << S.IndirectName << ")";
  587       outs() << "?)";
  589     outs() << S.Name;
  597         outs() << " (from executable)";
  599         outs() << " (dynamically looked up)";
  604           outs() << " (from bad library ordinal " << LibraryOrdinal << ")";
  606           outs() << " (from " << LibraryName << ")";
  611   outs() << "\n";
  681   outs() << format(" %02x %04x ", NSect, NDesc);
  683     outs() << format("%5.5s", stabString);
  685     outs() << format("   %02x", NType);
  733       outs() << '\n' << CurrentFilename << ":\n";
  735       outs() << "\n" << CurrentFilename << ":\n";
  737       outs() << "\n\nSymbols from " << CurrentFilename << ":\n\n";
  739         outs() << "Name                  Value           Class        Type"
  742         outs() << "Name                  Value   Class        Type"
  814       writeFileName(outs());
  818       outs() << Name << "\n";
  857       outs() << Name << " " << S.TypeChar << " " << SymbolAddrStr << " "
  861         outs() << SymbolAddrStr << ' ';
  863         outs() << SymbolSizeStr << ' ';
  864       outs() << S.TypeChar;
  867       outs() << " " << Name;
  869         outs() << " (indirect for ";
  873             outs() << "?)";
  875             outs() << IndirectName << ")";
  877           outs() << S.IndirectName << ")";
  879       outs() << "\n";
  881       outs() << left_justify(Name, 20) << "|" << SymbolAddrStr << "|   "
 1797         outs() << "Archive map\n";
 1810           outs() << SymName << " in " << FileNameOrErr.get() << "\n";
 1812         outs() << "\n";
 1835             outs() << "\n";
 1837               outs() << Filename << "(" << O->getFileName() << ")";
 1839               outs() << O->getFileName();
 1840             outs() << ":\n";
 1874                   outs() << "\n" << Obj.getFileName() << " (for architecture "
 1907                     outs() << "\n" << A->getFileName();
 1908                     outs() << "(" << O->getFileName() << ")";
 1910                       outs() << " (for architecture " << I->getArchFlagName()
 1913                     outs() << ":\n";
 1974                   outs() << "\n" << A->getFileName() << "(" << O->getFileName()
 2009             outs() << "\n";
 2010           outs() << Obj.getFileName();
 2012             outs() << " (for architecture " << O.getArchFlagName() << ")";
 2013           outs() << ":\n";
 2041               outs() << "\n" << A->getFileName();
 2043                 outs() << "(" << F->getFileName() << ")";
 2045                   outs() << " (for architecture " << O.getArchFlagName()
 2048                 outs() << ":" << F->getFileName();
 2049               outs() << ":\n";
tools/llvm-objcopy/CopyConfig.cpp
  384     printHelp(T, outs(), "llvm-objcopy");
  389     outs() << "llvm-objcopy, compatible with GNU objcopy\n";
  772     printHelp(T, outs(), "llvm-strip");
  777     outs() << "llvm-strip, compatible with GNU strip\n";
tools/llvm-objdump/COFFDump.cpp
   95   outs() <<  format("      0x%02x: ", unsigned(UCs[0].u.CodeOffset))
   99     outs() << " " << getUnwindRegisterName(UCs[0].getOpInfo());
  103       outs() << " " << UCs[1].FrameOffset;
  105       outs() << " " << UCs[1].FrameOffset
  110     outs() << " " << ((UCs[0].getOpInfo() + 1) * 8);
  113     outs() << " ";
  116     outs() << " " << getUnwindRegisterName(UCs[0].getOpInfo())
  120     outs() << " " << getUnwindRegisterName(UCs[0].getOpInfo())
  125     outs() << " XMM" << static_cast<uint32_t>(UCs[0].getOpInfo())
  129     outs() << " XMM" << UCs[0].getOpInfo()
  134     outs() << " " << (UCs[0].getOpInfo() ? "w/o" : "w")
  138   outs() << "\n";
  145       outs() << "Unwind data corrupted: Encountered unwind op "
  242   outs() << "SEH Table:";
  244     outs() << format(" 0x%x", P[I] + Obj->getPE32Header()->ImageBase);
  245   outs() << "\n\n";
  251   outs() << "TLS directory:"
  297   outs() << "\n";
  324   outs() << "Load configuration:"
  344   outs() << "\n";
  354   outs() << "The Import Tables:\n";
  361     outs() << format("  lookup %08x time %08x fwd %08x name %08x addr %08x\n\n",
  367     outs() << "    DLL Name: " << Name << "\n";
  368     outs() << "    Hint/Ord  Name\n";
  377         outs() << format("      % 6d\n", Ordinal);
  387       outs() << format("      % 6d  ", Hint) << Name << "\n";
  389     outs() << "\n";
  396   outs() << "Export Table:\n";
  407   outs() << " DLL name: " << DllName << "\n";
  408   outs() << " Ordinal base: " << OrdinalBase << "\n";
  409   outs() << " Ordinal      RVA  Name\n";
  425       outs() << format("    % 4d         ", Ordinal);
  427       outs() << format("    % 4d %# 8x", Ordinal, RVA);
  434       outs() << "  " << Name;
  439       outs() << " (forwarded to " << S << ")";
  441     outs() << "\n";
  492   outs() << "    Version: " << static_cast<int>(UI->getVersion()) << "\n";
  493   outs() << "    Flags: " << static_cast<int>(UI->getFlags());
  496       outs() << " UNW_ExceptionHandler";
  498       outs() << " UNW_TerminateHandler";
  500       outs() << " UNW_ChainInfo";
  502   outs() << "\n";
  503   outs() << "    Size of prolog: " << static_cast<int>(UI->PrologSize) << "\n";
  504   outs() << "    Number of Codes: " << static_cast<int>(UI->NumCodes) << "\n";
  507     outs() << "    Frame register: "
  509     outs() << "    Frame offset: " << 16 * UI->getFrameOffset() << "\n";
  511     outs() << "    No frame pointer used\n";
  520     outs() << "    Unwind Codes:\n";
  524   outs() << "\n";
  525   outs().flush();
  534   outs() << "Function Table:\n"
  557   outs() << "Function Table:\n";
  558   outs() << "  Start Address: ";
  559   printCOFFSymbolAddress(outs(), Rels,
  563   outs() << "\n";
  565   outs() << "  End Address: ";
  566   printCOFFSymbolAddress(outs(), Rels,
  570   outs() << "\n";
  572   outs() << "  Unwind Info Address: ";
  573   printCOFFSymbolAddress(outs(), Rels,
  577   outs() << "\n";
  647     outs() << "[" << format("%2d", Index) << "]"
  669     outs() << "[" << format("%2d", SI) << "]"
  686         outs() << " (" << StringRef(DemangledSymbol) << ")";
  689         outs() << " (invalid mangled name)";
  692     outs() << "\n";
  703         outs() << "AUX "
  719         outs() << "AUX " << Name.rtrim(StringRef("\0", 1))  << '\n';
  729         outs() << "AUX " << format("indx %d srch %d\n",
  733         outs() << "AUX Unknown\n";
tools/llvm-objdump/ELFDump.cpp
  162   outs() << "Dynamic Section:\n";
  168     outs() << format("  %-21s", Str.c_str());
  178         outs() << (Data + Dyn.d_un.d_val) << "\n";
  184     outs() << format(Fmt, (uint64_t)Dyn.d_un.d_val);
  189   outs() << "Program Header:\n";
  196       outs() << " DYNAMIC ";
  199       outs() << "EH_FRAME ";
  202       outs() << "   RELRO ";
  205       outs() << "   STACK ";
  208       outs() << "  INTERP ";
  211       outs() << "    LOAD ";
  214       outs() << "    NOTE ";
  217       outs() << "    OPENBSD_BOOTDATA ";
  220       outs() << "    OPENBSD_RANDOMIZE ";
  223       outs() << "    OPENBSD_WXNEEDED ";
  226       outs() << "    PHDR ";
  229       outs() << "    TLS ";
  232       outs() << " UNKNOWN ";
  237     outs() << "off    " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr "
  248   outs() << "\n";
  254   outs() << "Version References:\n";
  259     outs() << "  required from "
  265       outs() << "    "
  280   outs() << "Version definitions:\n";
  290     outs() << format_decimal(VerdefIndex++, VerdefIndexWidth) << " "
  299         outs() << std::string(VerdefIndexWidth + 17, ' ');
  300       outs() << StringRef(StrTab.drop_front(Verdaux->vda_name).data()) << '\n';
tools/llvm-objdump/MachODump.cpp
  310         dumpBytes(makeArrayRef(bytes, 4), outs());
  312       outs() << "\t.long " << Value;
  316         dumpBytes(makeArrayRef(bytes, 2), outs());
  318       outs() << "\t.short " << Value;
  322         dumpBytes(makeArrayRef(bytes, 2), outs());
  324       outs() << "\t.byte " << Value;
  328       outs() << "\t@ KIND_DATA\n";
  330       outs() << "\t@ data in code kind = " << Kind << "\n";
  334       dumpBytes(makeArrayRef(bytes, 1), outs());
  336     outs() << "\t.byte " << format("%3u", Value) << "\t@ KIND_JUMP_TABLE8\n";
  341       dumpBytes(makeArrayRef(bytes, 2), outs());
  343     outs() << "\t.short " << format("%5u", Value & 0xffff)
  350       dumpBytes(makeArrayRef(bytes, 4), outs());
  352     outs() << "\t.long " << Value;
  354       outs() << "\t@ KIND_JUMP_TABLE32\n";
  356       outs() << "\t@ KIND_ABS_JUMP_TABLE32\n";
  684     outs() << " (entries start past the end of the indirect symbol "
  687     outs() << " (entries extends past the end of the indirect symbol "
  689   outs() << "\n";
  692     outs() << "address            index";
  694     outs() << "address    index";
  696     outs() << " name\n";
  698     outs() << "\n";
  701       outs() << format("0x%016" PRIx64, addr + j * stride) << " ";
  703       outs() << format("0x%08" PRIx32, (uint32_t)addr + j * stride) << " ";
  707       outs() << "LOCAL\n";
  712       outs() << "LOCAL ABSOLUTE\n";
  716       outs() << "ABSOLUTE\n";
  719     outs() << format("%5u ", indirect_symbol);
  725         outs() << unwrapOrError(Symbol.getName(), O->getFileName());
  727         outs() << "?";
  730     outs() << "\n";
  752             outs() << "Can't print indirect symbols for (" << Sec.segname << ","
  758           outs() << "Indirect symbols for (" << Sec.segname << ","
  780             outs() << "Can't print indirect symbols for (" << Sec.segname << ","
  786           outs() << "Indirect symbols for (" << Sec.segname << ","
  819     outs() << format("%-7u", r_type) << " ";
  824       outs() << generic_r_types[r_type];
  827       outs() << x86_64_r_types[r_type];
  830       outs() << arm_r_types[r_type];
  834       outs() << arm64_r_types[r_type];
  837       outs() << format("%-7u ", r_type);
  847       outs() << "lo/";
  849       outs() << "hi/";
  851       outs() << "arm ";
  853       outs() << "thm ";
  857         outs() << "byte   ";
  860         outs() << "word   ";
  863         outs() << "long   ";
  867           outs() << "quad   ";
  869           outs() << format("?(%2d)  ", r_length);
  872         outs() << format("?(%2d)  ", r_length);
  908           outs() << "         ";
  910           outs() << format("%08x ", (unsigned int)r_address);
  914           outs() << "True  ";
  916           outs() << "False ";
  922         outs() << "n/a    ";
  926         outs() << format("True      0x%08x", (unsigned int)r_value);
  930             outs() << format(" half = 0x%04x ", (unsigned int)r_address);
  933           outs() << format(" other_half = 0x%04x ", (unsigned int)r_address);
  953         outs() << "\n";
  957         outs() << format("%08x %1d     %-2d     n/a    %-7d 1         0x%08x\n",
  966           outs() << "         ";
  968           outs() << format("%08x ", (unsigned int)r_address);
  972           outs() << "True  ";
  974           outs() << "False ";
  981           outs() << "True   ";
  983           outs() << "False     ";
  987             outs() << format("?(%d)\n", r_symbolnum);
  995               outs() << format("?(%d)\n", r_symbolnum);
  997               outs() << name << "\n";
 1002           outs() << "False  ";
 1004           outs() << "False     ";
 1008             outs() << format("other_half = 0x%04x\n", (unsigned int)r_address);
 1012             outs() << format("addend = 0x%06x\n", (unsigned int)r_symbolnum);
 1014             outs() << format("%d ", r_symbolnum);
 1016               outs() << "R_ABS\n";
 1025                   outs() << "(" << SegName << "," << *NameOrErr << ")\n";
 1027                   outs() << "(?,?)\n";
 1030                 outs() << "(?,?)\n";
 1044         outs() << format("%08x %1d     %-2d     %1d      %-7d 0         %d\n",
 1056     outs() << "External relocation information " << Dysymtab.nextrel
 1058     outs() << "\naddress  pcrel length extern type    scattered "
 1064     outs() << format("Local relocation information %u entries",
 1066     outs() << "\naddress  pcrel length extern type    scattered "
 1081             outs() << "Relocation information (" << SegName << "," << *NameOrErr
 1084             outs() << "Relocation information (" << SegName << ",?) "
 1086           outs() << "\naddress  pcrel length extern type    scattered "
 1101             outs() << "Relocation information (" << SegName << "," << *NameOrErr
 1104             outs() << "Relocation information (" << SegName << ",?) "
 1106           outs() << "\naddress  pcrel length extern type    scattered "
 1119   outs() << "Data in code table (" << nentries << " entries)\n";
 1120   outs() << "offset     length kind\n";
 1125     outs() << format("0x%08" PRIx32, Offset) << " ";
 1128     outs() << format("%6u", Length) << " ";
 1134         outs() << "DATA";
 1137         outs() << "JUMP_TABLE8";
 1140         outs() << "JUMP_TABLE16";
 1143         outs() << "JUMP_TABLE32";
 1146         outs() << "ABS_JUMP_TABLE32";
 1149         outs() << format("0x%04" PRIx32, Kind);
 1153       outs() << format("0x%04" PRIx32, Kind);
 1154     outs() << "\n";
 1162   outs() << "Linker optimiztion hints (" << nloh << " total bytes)\n";
 1167     outs() << "    identifier " << identifier << " ";
 1172       outs() << "AdrpAdrp\n";
 1175       outs() << "AdrpLdr\n";
 1178       outs() << "AdrpAddLdr\n";
 1181       outs() << "AdrpLdrGotLdr\n";
 1184       outs() << "AdrpAddStr\n";
 1187       outs() << "AdrpLdrGotStr\n";
 1190       outs() << "AdrpAdd\n";
 1193       outs() << "AdrpLdrGot\n";
 1196       outs() << "Unknown identifier value\n";
 1201     outs() << "    narguments " << narguments << "\n";
 1208       outs() << "\tvalue " << format("0x%" PRIx64, value) << "\n";
 1229           outs() << p << "\n";
 1231           outs() << "\t" << p;
 1232           outs() << " (compatibility version "
 1236           outs() << " current version "
 1241             outs() << ", weak";
 1243             outs() << ", reexport";
 1245             outs() << ", upward";
 1247             outs() << ", lazy";
 1248           outs() << ")\n";
 1251         outs() << "\tBad offset (" << dl.dylib.name << ") for name of ";
 1253           outs() << "LC_ID_DYLIB ";
 1255           outs() << "LC_LOAD_DYLIB ";
 1257           outs() << "LC_LOAD_WEAK_DYLIB ";
 1259           outs() << "LC_LAZY_LOAD_DYLIB ";
 1261           outs() << "LC_REEXPORT_DYLIB ";
 1263           outs() << "LC_LOAD_UPWARD_DYLIB ";
 1265           outs() << "LC_??? ";
 1266         outs() << "command " << Index++ << "\n";
 1308   outs().write_escaped(p);
 1317         outs() << format("%016" PRIx64, sect_addr + i) << "  ";
 1319         outs() << format("%08" PRIx64, sect_addr + i) << "  ";
 1324       outs() << "\n";
 1329   outs() << format("0x%08" PRIx32, l);
 1331     outs() << format(" (%.16e)\n", f);
 1334       outs() << " (+Infinity)\n";
 1336       outs() << " (-Infinity)\n";
 1338       outs() << " (non-signaling Not-a-Number)\n";
 1340       outs() << " (signaling Not-a-Number)\n";
 1350         outs() << format("%016" PRIx64, sect_addr + i) << "  ";
 1352         outs() << format("%08" PRIx64, sect_addr + i) << "  ";
 1368   outs() << format("0x%08" PRIx32, l0) << " " << format("0x%08" PRIx32, l1);
 1375     outs() << format(" (%.16e)\n", d);
 1378       outs() << " (+Infinity)\n";
 1380       outs() << " (-Infinity)\n";
 1382       outs() << " (non-signaling Not-a-Number)\n";
 1384       outs() << " (signaling Not-a-Number)\n";
 1394         outs() << format("%016" PRIx64, sect_addr + i) << "  ";
 1396         outs() << format("%08" PRIx64, sect_addr + i) << "  ";
 1414   outs() << format("0x%08" PRIx32, l0) << " ";
 1415   outs() << format("0x%08" PRIx32, l1) << " ";
 1416   outs() << format("0x%08" PRIx32, l2) << " ";
 1417   outs() << format("0x%08" PRIx32, l3) << "\n";
 1426         outs() << format("%016" PRIx64, sect_addr + i) << "  ";
 1428         outs() << format("%08" PRIx64, sect_addr + i) << "  ";
 1493         outs() << format("%016" PRIx64, sect_addr + i) << "  ";
 1495         outs() << format("%08" PRIx64, sect_addr + i) << "  ";
 1517       outs() << "external relocation entry for symbol:" << SymName << "\n";
 1526       outs() << format("0x%" PRIx64, lp) << " (not in a literal section)\n";
 1542     outs() << SegmentName << ":" << SectName << ":";
 1563       outs() << "\n";
 1643       outs() << format("0x%016" PRIx64, sect_addr + i * stride) << " ";
 1648       outs() << format("0x%016" PRIx64, pointer_value);
 1651       outs() << format("0x%08" PRIx64, sect_addr + i * stride) << " ";
 1656       outs() << format("0x%08" PRIx32, pointer_value);
 1666         outs() << " " << unwrapOrError(RelocSym->getName(), O->getFileName());
 1670           outs() << " " << SymbolName;
 1673     outs() << "\n";
 1684         outs() << format("%016" PRIx64, addr) << "\t";
 1686         outs() << format("%08" PRIx64, addr) << "\t";
 1689         outs() << format("%02" PRIx32, (uint32_t)byte_word) << " ";
 1691       outs() << "\n";
 1697         outs() << format("%016" PRIx64, addr) << "\t";
 1699         outs() << format("%08" PRIx64, addr) << "\t";
 1707           outs() << format("%08" PRIx32, long_word) << " ";
 1711             outs() << format("%02" PRIx32, (uint32_t)byte_word) << " ";
 1715       outs() << "\n";
 1779         outs() << "Contents of (" << SegName << "," << SectName
 1789             outs() << sect;
 1808             outs() << "zerofill section and has no contents in the file\n";
 1832             outs() << "Unknown section type ("
 1839             outs() << "zerofill section and has no contents in the file\n";
 1862         outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 1866       outs() << format("%.*s", BytesStr.size(), sect) << "\n";
 1924       outs() << Name;
 1926         outs() << '(' << ArchiveMemberName << ')';
 1928         outs() << " (architecture " << ArchitectureName << ")";
 1929       outs() << ":\n";
 2021     DICtx->dump(outs(), DumpOpts);
 2027   outs() << "    cputype (" << cputype << ")\n";
 2028   outs() << "    cpusubtype (" << cpusubtype << ")\n";
 2038       outs() << "    cputype CPU_TYPE_I386\n";
 2039       outs() << "    cpusubtype CPU_SUBTYPE_I386_ALL\n";
 2049       outs() << "    cputype CPU_TYPE_X86_64\n";
 2050       outs() << "    cpusubtype CPU_SUBTYPE_X86_64_ALL\n";
 2053       outs() << "    cputype CPU_TYPE_X86_64\n";
 2054       outs() << "    cpusubtype CPU_SUBTYPE_X86_64_H\n";
 2064       outs() << "    cputype CPU_TYPE_ARM\n";
 2065       outs() << "    cpusubtype CPU_SUBTYPE_ARM_ALL\n";
 2068       outs() << "    cputype CPU_TYPE_ARM\n";
 2069       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V4T\n";
 2072       outs() << "    cputype CPU_TYPE_ARM\n";
 2073       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V5TEJ\n";
 2076       outs() << "    cputype CPU_TYPE_ARM\n";
 2077       outs() << "    cpusubtype CPU_SUBTYPE_ARM_XSCALE\n";
 2080       outs() << "    cputype CPU_TYPE_ARM\n";
 2081       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V6\n";
 2084       outs() << "    cputype CPU_TYPE_ARM\n";
 2085       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V6M\n";
 2088       outs() << "    cputype CPU_TYPE_ARM\n";
 2089       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V7\n";
 2092       outs() << "    cputype CPU_TYPE_ARM\n";
 2093       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V7EM\n";
 2096       outs() << "    cputype CPU_TYPE_ARM\n";
 2097       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V7K\n";
 2100       outs() << "    cputype CPU_TYPE_ARM\n";
 2101       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V7M\n";
 2104       outs() << "    cputype CPU_TYPE_ARM\n";
 2105       outs() << "    cpusubtype CPU_SUBTYPE_ARM_V7S\n";
 2115       outs() << "    cputype CPU_TYPE_ARM64\n";
 2116       outs() << "    cpusubtype CPU_SUBTYPE_ARM64_ALL\n";
 2119       outs() << "    cputype CPU_TYPE_ARM64\n";
 2120       outs() << "    cpusubtype CPU_SUBTYPE_ARM64E\n";
 2130       outs() << "    cputype CPU_TYPE_ARM64_32\n";
 2131       outs() << "    cpusubtype CPU_SUBTYPE_ARM64_32_V8\n";
 2146   outs() << "Fat headers\n";
 2149       outs() << "fat_magic FAT_MAGIC\n";
 2151       outs() << "fat_magic FAT_MAGIC_64\n";
 2153     outs() << "fat_magic " << format("0x%" PRIx32, MachO::FAT_MAGIC) << "\n";
 2160   outs() << "nfat_arch " << UB->getNumberOfObjects();
 2162     outs() << " (malformed, contains zero architecture types)\n";
 2164     outs() << " (malformed, architectures past end of file)\n";
 2166     outs() << "\n";
 2172     outs() << "architecture ";
 2180         outs() << "(illegal duplicate architecture) ";
 2185       outs() << OFA.getArchFlagName() << "\n";
 2188       outs() << i << "\n";
 2189       outs() << "    cputype " << cputype << "\n";
 2190       outs() << "    cpusubtype " << (cpusubtype & ~MachO::CPU_SUBTYPE_MASK)
 2195       outs() << "    capabilities CPU_SUBTYPE_LIB64\n";
 2197       outs() << "    capabilities "
 2200     outs() << "    offset " << OFA.getOffset();
 2202       outs() << " (past end of file)";
 2204       outs() << " (not aligned on it's alignment (2^" << OFA.getAlign() << ")";
 2205     outs() << "\n";
 2206     outs() << "    size " << OFA.getSize();
 2209       outs() << " (past end of file)";
 2210     outs() << "\n";
 2211     outs() << "    align 2^" << OFA.getAlign() << " (" << (1 << OFA.getAlign())
 2221     outs() << C.getChildOffset() << "\t";
 2228     outs() << "-";
 2229     outs() << ((Mode & sys::fs::owner_read) ? "r" : "-");
 2230     outs() << ((Mode & sys::fs::owner_write) ? "w" : "-");
 2231     outs() << ((Mode & sys::fs::owner_exe) ? "x" : "-");
 2232     outs() << ((Mode & sys::fs::group_read) ? "r" : "-");
 2233     outs() << ((Mode & sys::fs::group_write) ? "w" : "-");
 2234     outs() << ((Mode & sys::fs::group_exe) ? "x" : "-");
 2235     outs() << ((Mode & sys::fs::others_read) ? "r" : "-");
 2236     outs() << ((Mode & sys::fs::others_write) ? "w" : "-");
 2237     outs() << ((Mode & sys::fs::others_exe) ? "x" : "-");
 2239     outs() << format("0%o ", Mode);
 2242   outs() << format("%3d/%-3d %5" PRId64 " ",
 2255       outs() << "(date: \"" << RawLastModified
 2262       outs() << format("%.24s ", ctime(&t));
 2265     outs() << RawLastModified << " ";
 2272       outs() << unwrapOrError(C.getRawName(),
 2278       outs() << Name << "\n";
 2281     outs() << unwrapOrError(C.getRawName(), getFileNameForError(C, ChildIndex),
 2331       outs() << Filename << ": is not an object file\n";
 2337     outs() << "Archive : " << Filename << "\n";
 2415             outs() << "Archive : " << Filename;
 2417               outs() << " (architecture " << ArchitectureName << ")";
 2418             outs() << "\n";
 2479           outs() << "Archive : " << Filename << "\n";
 2529       outs() << "Archive : " << Filename;
 2531         outs() << " (architecture " << ArchitectureName << ")";
 2532       outs() << "\n";
 4119   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 4130       outs() << listname << " list pointer extends past end of (" << SegName
 4132     outs() << format("%016" PRIx64, S.getAddress() + i) << " ";
 4143       outs() << format("0x%" PRIx64, n_value);
 4145         outs() << " + " << format("0x%" PRIx64, p);
 4147       outs() << format("0x%" PRIx64, p);
 4149       outs() << " " << name;
 4150     outs() << "\n";
 4168   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 4179       outs() << listname << " list pointer extends past end of (" << SegName
 4182     outs() << format("%08" PRIx32, Address) << " ";
 4186     outs() << format("0x%" PRIx32, p);
 4190       outs() << " " << name;
 4191     outs() << "\n";
 4201   outs() << "                layout map: ";
 4203     outs() << format("0x%02" PRIx32, (*layout_map) & 0xff) << " ";
 4207   outs() << "\n";
 4248     outs() << "   (method_list_t entends past the end of the section)\n";
 4253   outs() << indent << "\t\t   entsize " << ml.entsize << "\n";
 4254   outs() << indent << "\t\t     count " << ml.count << "\n";
 4265       outs() << indent << "   (method_t extends past the end of the section)\n";
 4271     outs() << indent << "\t\t      name ";
 4276         outs() << sym_name;
 4278         outs() << format("0x%" PRIx64, n_value);
 4280         outs() << " + " << format("0x%" PRIx64, m.name);
 4282       outs() << format("0x%" PRIx64, m.name);
 4285       outs() << format(" %.*s", left, name);
 4286     outs() << "\n";
 4288     outs() << indent << "\t\t     types ";
 4293         outs() << sym_name;
 4295         outs() << format("0x%" PRIx64, n_value);
 4297         outs() << " + " << format("0x%" PRIx64, m.types);
 4299       outs() << format("0x%" PRIx64, m.types);
 4302       outs() << format(" %.*s", left, name);
 4303     outs() << "\n";
 4305     outs() << indent << "\t\t       imp ";
 4310         outs() << format("0x%" PRIx64, n_value) << " ";
 4312           outs() << "+ " << format("0x%" PRIx64, m.imp) << " ";
 4314         outs() << format("0x%" PRIx64, m.imp) << " ";
 4317       outs() << name;
 4318     outs() << "\n";
 4339     outs() << "   (method_list_t entends past the end of the section)\n";
 4344   outs() << indent << "\t\t   entsize " << ml.entsize << "\n";
 4345   outs() << indent << "\t\t     count " << ml.count << "\n";
 4356       outs() << indent << "   (method_t entends past the end of the section)\n";
 4362     outs() << indent << "\t\t      name " << format("0x%" PRIx32, m.name);
 4365       outs() << format(" %.*s", left, name);
 4366     outs() << "\n";
 4368     outs() << indent << "\t\t     types " << format("0x%" PRIx32, m.types);
 4371       outs() << format(" %.*s", left, name);
 4372     outs() << "\n";
 4374     outs() << indent << "\t\t       imp " << format("0x%" PRIx32, m.imp);
 4378       outs() << " " << name;
 4379     outs() << "\n";
 4398   outs() << "\n";
 4402     outs() << "\t\t objc_method_list extends past end of the section\n";
 4409   outs() << "\t\t         obsolete "
 4411   outs() << "\t\t     method_count " << method_list.method_count << "\n";
 4416       outs() << "\t\t remaining method's extend past the of the section\n";
 4424     outs() << "\t\t      method_name "
 4429         outs() << format(" %.*s", xleft, name);
 4431         outs() << " (not in an __OBJC section)";
 4433     outs() << "\n";
 4435     outs() << "\t\t     method_types "
 4440         outs() << format(" %.*s", xleft, name);
 4442         outs() << " (not in an __OBJC section)";
 4444     outs() << "\n";
 4446     outs() << "\t\t       method_imp "
 4451         outs() << SymbolName;
 4453     outs() << "\n";
 4473     outs() << "   (protocol_list_t entends past the end of the section)\n";
 4478   outs() << "                      count " << pl.count << "\n";
 4489       outs() << "   (protocol_t * entends past the end of the section)\n";
 4495     outs() << "\t\t      list[" << i << "] ";
 4499         outs() << sym_name;
 4501         outs() << format("0x%" PRIx64, n_value);
 4503         outs() << " + " << format("0x%" PRIx64, q);
 4505       outs() << format("0x%" PRIx64, q);
 4506     outs() << " (struct protocol_t *)\n";
 4514       outs() << "   (protocol_t entends past the end of the section)\n";
 4520     outs() << "\t\t\t      isa " << format("0x%" PRIx64, pc.isa) << "\n";
 4522     outs() << "\t\t\t     name ";
 4527         outs() << sym_name;
 4529         outs() << format("0x%" PRIx64, n_value);
 4531         outs() << " + " << format("0x%" PRIx64, pc.name);
 4533       outs() << format("0x%" PRIx64, pc.name);
 4536       outs() << format(" %.*s", left, name);
 4537     outs() << "\n";
 4539     outs() << "\t\t\tprotocols " << format("0x%" PRIx64, pc.protocols) << "\n";
 4541     outs() << "\t\t  instanceMethods ";
 4547         outs() << sym_name;
 4549         outs() << format("0x%" PRIx64, n_value);
 4551         outs() << " + " << format("0x%" PRIx64, pc.instanceMethods);
 4553       outs() << format("0x%" PRIx64, pc.instanceMethods);
 4554     outs() << " (struct method_list_t *)\n";
 4558     outs() << "\t\t     classMethods ";
 4564         outs() << sym_name;
 4566         outs() << format("0x%" PRIx64, n_value);
 4568         outs() << " + " << format("0x%" PRIx64, pc.classMethods);
 4570       outs() << format("0x%" PRIx64, pc.classMethods);
 4571     outs() << " (struct method_list_t *)\n";
 4575     outs() << "\t  optionalInstanceMethods "
 4577     outs() << "\t     optionalClassMethods "
 4579     outs() << "\t       instanceProperties "
 4602     outs() << "   (protocol_list_t entends past the end of the section)\n";
 4607   outs() << "                      count " << pl.count << "\n";
 4618       outs() << "   (protocol_t * entends past the end of the section)\n";
 4623     outs() << "\t\t      list[" << i << "] " << format("0x%" PRIx32, q)
 4631       outs() << "   (protocol_t entends past the end of the section)\n";
 4636     outs() << "\t\t\t      isa " << format("0x%" PRIx32, pc.isa) << "\n";
 4637     outs() << "\t\t\t     name " << format("0x%" PRIx32, pc.name);
 4640       outs() << format(" %.*s", left, name);
 4641     outs() << "\n";
 4642     outs() << "\t\t\tprotocols " << format("0x%" PRIx32, pc.protocols) << "\n";
 4643     outs() << "\t\t  instanceMethods "
 4648     outs() << "\t\t     classMethods " << format("0x%" PRIx32, pc.classMethods)
 4652     outs() << "\t  optionalInstanceMethods "
 4654     outs() << "\t     optionalClassMethods "
 4656     outs() << "\t       instanceProperties "
 4666       outs() << "\t";
 4670         outs() << " ";
 4689   outs() << "\n";
 4694     outs() << " objc_method_description_list extends past end of the section\n";
 4702   outs() << "        count " << mdl.count << "\n";
 4708       outs() << " remaining list entries extend past the of the section\n";
 4712     outs() << "        list[" << i << "]\n";
 4719     outs() << "             name " << format("0x%08" PRIx32, md.name);
 4723         outs() << format(" %.*s", xleft, name);
 4725         outs() << " (not in an __OBJC section)";
 4727     outs() << "\n";
 4730     outs() << "            types " << format("0x%08" PRIx32, md.types);
 4734         outs() << format(" %.*s", xleft, name);
 4736         outs() << " (not in an __OBJC section)";
 4738     outs() << "\n";
 4757   outs() << "\n";
 4762     outs() << "            Protocol extends past end of the section\n";
 4770   outs() << "              isa " << format("0x%08" PRIx32, protocol.isa)
 4774   outs() << "    protocol_name "
 4779       outs() << format(" %.*s", left, name);
 4781       outs() << " (not in an __OBJC section)";
 4783   outs() << "\n";
 4786   outs() << "    protocol_list "
 4789     outs() << " (not in an __OBJC section)\n";
 4792   outs() << " instance_methods "
 4795     outs() << " (not in an __OBJC section)\n";
 4798   outs() << "    class_methods "
 4801     outs() << " (not in an __OBJC section)\n";
 4818   outs() << "\n";
 4822     outs() << "\t\t objc_protocol_list_t extends past end of the section\n";
 4830   outs() << "         next " << format("0x%08" PRIx32, protocol_list.next)
 4833   outs() << "        count " << protocol_list.count << "\n";
 4838       outs() << "\t\t remaining list entries extend past the of the section\n";
 4846     outs() << "      list[" << i << "] " << format("0x%08" PRIx32, l);
 4848       outs() << "(not in an __OBJC section)\n";
 4868     outs() << "   (ivar_list_t entends past the end of the section)\n";
 4873   outs() << "                    entsize " << il.entsize << "\n";
 4874   outs() << "                      count " << il.count << "\n";
 4885       outs() << "   (ivar_t entends past the end of the section)\n";
 4891     outs() << "\t\t\t   offset ";
 4896         outs() << sym_name;
 4898         outs() << format("0x%" PRIx64, n_value);
 4900         outs() << " + " << format("0x%" PRIx64, i.offset);
 4902       outs() << format("0x%" PRIx64, i.offset);
 4908       outs() << " " << ivar_offset << "\n";
 4910       outs() << "\n";
 4912     outs() << "\t\t\t     name ";
 4917         outs() << sym_name;
 4919         outs() << format("0x%" PRIx64, n_value);
 4921         outs() << " + " << format("0x%" PRIx64, i.name);
 4923       outs() << format("0x%" PRIx64, i.name);
 4926       outs() << format(" %.*s", left, name);
 4927     outs() << "\n";
 4929     outs() << "\t\t\t     type ";
 4935         outs() << sym_name;
 4937         outs() << format("0x%" PRIx64, n_value);
 4939         outs() << " + " << format("0x%" PRIx64, i.type);
 4941       outs() << format("0x%" PRIx64, i.type);
 4943       outs() << format(" %.*s", left, name);
 4944     outs() << "\n";
 4946     outs() << "\t\t\talignment " << i.alignment << "\n";
 4947     outs() << "\t\t\t     size " << i.size << "\n";
 4969     outs() << "   (ivar_list_t entends past the end of the section)\n";
 4974   outs() << "                    entsize " << il.entsize << "\n";
 4975   outs() << "                      count " << il.count << "\n";
 4986       outs() << "   (ivar_t entends past the end of the section)\n";
 4992     outs() << "\t\t\t   offset " << format("0x%" PRIx32, i.offset);
 4998       outs() << " " << ivar_offset << "\n";
 5000       outs() << "\n";
 5002     outs() << "\t\t\t     name " << format("0x%" PRIx32, i.name);
 5005       outs() << format(" %.*s", left, name);
 5006     outs() << "\n";
 5008     outs() << "\t\t\t     type " << format("0x%" PRIx32, i.type);
 5011       outs() << format(" %.*s", left, name);
 5012     outs() << "\n";
 5014     outs() << "\t\t\talignment " << i.alignment << "\n";
 5015     outs() << "\t\t\t     size " << i.size << "\n";
 5038     outs() << "   (objc_property_list entends past the end of the section)\n";
 5043   outs() << "                    entsize " << opl.entsize << "\n";
 5044   outs() << "                      count " << opl.count << "\n";
 5055       outs() << "   (objc_property entends past the end of the section)\n";
 5061     outs() << "\t\t\t     name ";
 5066         outs() << sym_name;
 5068         outs() << format("0x%" PRIx64, n_value);
 5070         outs() << " + " << format("0x%" PRIx64, op.name);
 5072       outs() << format("0x%" PRIx64, op.name);
 5075       outs() << format(" %.*s", left, name);
 5076     outs() << "\n";
 5078     outs() << "\t\t\tattributes ";
 5084         outs() << sym_name;
 5086         outs() << format("0x%" PRIx64, n_value);
 5088         outs() << " + " << format("0x%" PRIx64, op.attributes);
 5090       outs() << format("0x%" PRIx64, op.attributes);
 5093       outs() << format(" %.*s", left, name);
 5094     outs() << "\n";
 5116     outs() << "   (objc_property_list entends past the end of the section)\n";
 5121   outs() << "                    entsize " << opl.entsize << "\n";
 5122   outs() << "                      count " << opl.count << "\n";
 5133       outs() << "   (objc_property entends past the end of the section)\n";
 5139     outs() << "\t\t\t     name " << format("0x%" PRIx32, op.name);
 5142       outs() << format(" %.*s", left, name);
 5143     outs() << "\n";
 5145     outs() << "\t\t\tattributes " << format("0x%" PRIx32, op.attributes);
 5148       outs() << format(" %.*s", left, name);
 5149     outs() << "\n";
 5171   outs() << "                    flags " << format("0x%" PRIx32, cro.flags);
 5173     outs() << " RO_META";
 5175     outs() << " RO_ROOT";
 5177     outs() << " RO_HAS_CXX_STRUCTORS";
 5178   outs() << "\n";
 5179   outs() << "            instanceStart " << cro.instanceStart << "\n";
 5180   outs() << "             instanceSize " << cro.instanceSize << "\n";
 5181   outs() << "                 reserved " << format("0x%" PRIx32, cro.reserved)
 5183   outs() << "               ivarLayout " << format("0x%" PRIx64, cro.ivarLayout)
 5187   outs() << "                     name ";
 5192       outs() << sym_name;
 5194       outs() << format("0x%" PRIx64, n_value);
 5196       outs() << " + " << format("0x%" PRIx64, cro.name);
 5198     outs() << format("0x%" PRIx64, cro.name);
 5201     outs() << format(" %.*s", left, name);
 5202   outs() << "\n";
 5204   outs() << "              baseMethods ";
 5209       outs() << sym_name;
 5211       outs() << format("0x%" PRIx64, n_value);
 5213       outs() << " + " << format("0x%" PRIx64, cro.baseMethods);
 5215     outs() << format("0x%" PRIx64, cro.baseMethods);
 5216   outs() << " (struct method_list_t *)\n";
 5220   outs() << "            baseProtocols ";
 5226       outs() << sym_name;
 5228       outs() << format("0x%" PRIx64, n_value);
 5230       outs() << " + " << format("0x%" PRIx64, cro.baseProtocols);
 5232     outs() << format("0x%" PRIx64, cro.baseProtocols);
 5233   outs() << "\n";
 5237   outs() << "                    ivars ";
 5242       outs() << sym_name;
 5244       outs() << format("0x%" PRIx64, n_value);
 5246       outs() << " + " << format("0x%" PRIx64, cro.ivars);
 5248     outs() << format("0x%" PRIx64, cro.ivars);
 5249   outs() << "\n";
 5253   outs() << "           weakIvarLayout ";
 5259       outs() << sym_name;
 5261       outs() << format("0x%" PRIx64, n_value);
 5263       outs() << " + " << format("0x%" PRIx64, cro.weakIvarLayout);
 5265     outs() << format("0x%" PRIx64, cro.weakIvarLayout);
 5266   outs() << "\n";
 5269   outs() << "           baseProperties ";
 5275       outs() << sym_name;
 5277       outs() << format("0x%" PRIx64, n_value);
 5279       outs() << " + " << format("0x%" PRIx64, cro.baseProperties);
 5281     outs() << format("0x%" PRIx64, cro.baseProperties);
 5282   outs() << "\n";
 5304     outs() << "   (class_ro_t entends past the end of the section)\n";
 5309   outs() << "                    flags " << format("0x%" PRIx32, cro.flags);
 5311     outs() << " RO_META";
 5313     outs() << " RO_ROOT";
 5315     outs() << " RO_HAS_CXX_STRUCTORS";
 5316   outs() << "\n";
 5317   outs() << "            instanceStart " << cro.instanceStart << "\n";
 5318   outs() << "             instanceSize " << cro.instanceSize << "\n";
 5319   outs() << "               ivarLayout " << format("0x%" PRIx32, cro.ivarLayout)
 5323   outs() << "                     name " << format("0x%" PRIx32, cro.name);
 5326     outs() << format(" %.*s", left, name);
 5327   outs() << "\n";
 5329   outs() << "              baseMethods "
 5335   outs() << "            baseProtocols "
 5339   outs() << "                    ivars " << format("0x%" PRIx32, cro.ivars)
 5343   outs() << "           weakIvarLayout "
 5346   outs() << "           baseProperties "
 5369   outs() << "           isa " << format("0x%" PRIx64, c.isa);
 5373     outs() << " " << name;
 5374   outs() << "\n";
 5376   outs() << "    superclass " << format("0x%" PRIx64, c.superclass);
 5380     outs() << " " << name;
 5385       outs() << " " << name;
 5387   outs() << "\n";
 5389   outs() << "         cache " << format("0x%" PRIx64, c.cache);
 5393     outs() << " " << name;
 5394   outs() << "\n";
 5396   outs() << "        vtable " << format("0x%" PRIx64, c.vtable);
 5400     outs() << " " << name;
 5401   outs() << "\n";
 5405   outs() << "          data ";
 5408       outs() << name;
 5410       outs() << format("0x%" PRIx64, n_value);
 5412       outs() << " + " << format("0x%" PRIx64, c.data);
 5414     outs() << format("0x%" PRIx64, c.data);
 5415   outs() << " (struct class_ro_t *)";
 5419     outs() << " Swift class";
 5420   outs() << "\n";
 5430       outs() << "Meta Class\n";
 5448     outs() << "   (class_t entends past the end of the section)\n";
 5454   outs() << "           isa " << format("0x%" PRIx32, c.isa);
 5458     outs() << " " << name;
 5459   outs() << "\n";
 5461   outs() << "    superclass " << format("0x%" PRIx32, c.superclass);
 5465     outs() << " " << name;
 5466   outs() << "\n";
 5468   outs() << "         cache " << format("0x%" PRIx32, c.cache);
 5472     outs() << " " << name;
 5473   outs() << "\n";
 5475   outs() << "        vtable " << format("0x%" PRIx32, c.vtable);
 5479     outs() << " " << name;
 5480   outs() << "\n";
 5484   outs() << "          data " << format("0x%" PRIx32, c.data)
 5489     outs() << " Swift class";
 5490   outs() << "\n";
 5496     outs() << "Meta Class\n";
 5510   outs() << "\t\t      isa " << format("0x%08" PRIx32, objc_class->isa);
 5514       outs() << format(" %.*s", left, name);
 5516       outs() << " (not in an __OBJC section)";
 5518   outs() << "\n";
 5520   outs() << "\t      super_class "
 5525       outs() << format(" %.*s", left, name);
 5527       outs() << " (not in an __OBJC section)";
 5529   outs() << "\n";
 5531   outs() << "\t\t     name " << format("0x%08" PRIx32, objc_class->name);
 5535       outs() << format(" %.*s", left, name);
 5537       outs() << " (not in an __OBJC section)";
 5539   outs() << "\n";
 5541   outs() << "\t\t  version " << format("0x%08" PRIx32, objc_class->version)
 5544   outs() << "\t\t     info " << format("0x%08" PRIx32, objc_class->info);
 5547       outs() << " CLS_CLASS";
 5549       outs() << " CLS_META";
 5551   outs() << "\n";
 5553   outs() << "\t    instance_size "
 5557   outs() << "\t\t    ivars " << format("0x%08" PRIx32, objc_class->ivars);
 5560       outs() << "\n";
 5563       outs() << " (entends past the end of the section)\n";
 5569     outs() << "\t\t       ivar_count " << objc_ivar_list.ivar_count << "\n";
 5573         outs() << "\t\t remaining ivar's extend past the of the section\n";
 5581       outs() << "\t\t\tivar_name " << format("0x%08" PRIx32, ivar.ivar_name);
 5585           outs() << format(" %.*s", xleft, name);
 5587           outs() << " (not in an __OBJC section)";
 5589       outs() << "\n";
 5591       outs() << "\t\t\tivar_type " << format("0x%08" PRIx32, ivar.ivar_type);
 5595           outs() << format(" %.*s", xleft, name);
 5597           outs() << " (not in an __OBJC section)";
 5599       outs() << "\n";
 5601       outs() << "\t\t      ivar_offset "
 5605     outs() << " (not in an __OBJC section)\n";
 5608   outs() << "\t\t  methods " << format("0x%08" PRIx32, objc_class->methodLists);
 5610     outs() << " (not in an __OBJC section)\n";
 5612   outs() << "\t\t    cache " << format("0x%08" PRIx32, objc_class->cache)
 5615   outs() << "\t\tprotocols " << format("0x%08" PRIx32, objc_class->protocols);
 5617     outs() << " (not in an __OBJC section)\n";
 5626   outs() << "\t       category name "
 5632       outs() << format(" %.*s", left, name);
 5634       outs() << " (not in an __OBJC section)";
 5636   outs() << "\n";
 5638   outs() << "\t\t  class name "
 5644       outs() << format(" %.*s", left, name);
 5646       outs() << " (not in an __OBJC section)";
 5648   outs() << "\n";
 5650   outs() << "\t    instance methods "
 5653     outs() << " (not in an __OBJC section)\n";
 5655   outs() << "\t       class methods "
 5658     outs() << " (not in an __OBJC section)\n";
 5675     outs() << "   (category_t entends past the end of the section)\n";
 5681   outs() << "              name ";
 5686       outs() << sym_name;
 5688       outs() << format("0x%" PRIx64, n_value);
 5690       outs() << " + " << format("0x%" PRIx64, c.name);
 5692     outs() << format("0x%" PRIx64, c.name);
 5695     outs() << format(" %.*s", left, name);
 5696   outs() << "\n";
 5698   outs() << "               cls ";
 5703       outs() << sym_name;
 5705       outs() << format("0x%" PRIx64, n_value);
 5707       outs() << " + " << format("0x%" PRIx64, c.cls);
 5709     outs() << format("0x%" PRIx64, c.cls);
 5710   outs() << "\n";
 5714   outs() << "   instanceMethods ";
 5720       outs() << sym_name;
 5722       outs() << format("0x%" PRIx64, n_value);
 5724       outs() << " + " << format("0x%" PRIx64, c.instanceMethods);
 5726     outs() << format("0x%" PRIx64, c.instanceMethods);
 5727   outs() << "\n";
 5731   outs() << "      classMethods ";
 5736       outs() << sym_name;
 5738       outs() << format("0x%" PRIx64, n_value);
 5740       outs() << " + " << format("0x%" PRIx64, c.classMethods);
 5742     outs() << format("0x%" PRIx64, c.classMethods);
 5743   outs() << "\n";
 5747   outs() << "         protocols ";
 5752       outs() << sym_name;
 5754       outs() << format("0x%" PRIx64, n_value);
 5756       outs() << " + " << format("0x%" PRIx64, c.protocols);
 5758     outs() << format("0x%" PRIx64, c.protocols);
 5759   outs() << "\n";
 5763   outs() << "instanceProperties ";
 5769       outs() << sym_name;
 5771       outs() << format("0x%" PRIx64, n_value);
 5773       outs() << " + " << format("0x%" PRIx64, c.instanceProperties);
 5775     outs() << format("0x%" PRIx64, c.instanceProperties);
 5776   outs() << "\n";
 5794     outs() << "   (category_t entends past the end of the section)\n";
 5800   outs() << "              name " << format("0x%" PRIx32, c.name);
 5804     outs() << " " << name;
 5805   outs() << "\n";
 5807   outs() << "               cls " << format("0x%" PRIx32, c.cls) << "\n";
 5810   outs() << "   instanceMethods " << format("0x%" PRIx32, c.instanceMethods)
 5814   outs() << "      classMethods " << format("0x%" PRIx32, c.classMethods)
 5818   outs() << "         protocols " << format("0x%" PRIx32, c.protocols) << "\n";
 5821   outs() << "instanceProperties " << format("0x%" PRIx32, c.instanceProperties)
 5847   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 5857       outs() << "   (message_ref entends past the end of the section)\n";
 5863     outs() << "  imp ";
 5867       outs() << format("0x%" PRIx64, n_value) << " ";
 5869         outs() << "+ " << format("0x%" PRIx64, mr.imp) << " ";
 5871       outs() << format("0x%" PRIx64, mr.imp) << " ";
 5873       outs() << " " << name;
 5874     outs() << "\n";
 5876     outs() << "  sel ";
 5881         outs() << sym_name;
 5883         outs() << format("0x%" PRIx64, n_value);
 5885         outs() << " + " << format("0x%" PRIx64, mr.sel);
 5887       outs() << format("0x%" PRIx64, mr.sel);
 5890       outs() << format(" %.*s", left, name);
 5891     outs() << "\n";
 5915   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 5925       outs() << "   (message_ref entends past the end of the section)\n";
 5931     outs() << "  imp " << format("0x%" PRIx32, mr.imp);
 5935       outs() << " " << name;
 5936     outs() << "\n";
 5938     outs() << "  sel " << format("0x%" PRIx32, mr.sel);
 5941       outs() << " " << name;
 5942     outs() << "\n";
 5966   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 5974     outs() << "   (objc_image_info entends past the end of the section)\n";
 5979   outs() << "  version " << o.version << "\n";
 5980   outs() << "    flags " << format("0x%" PRIx32, o.flags);
 5982     outs() << " OBJC_IMAGE_IS_REPLACEMENT";
 5984     outs() << " OBJC_IMAGE_SUPPORTS_GC";
 5986     outs() << " OBJC_IMAGE_IS_SIMULATED";
 5988     outs() << " OBJC_IMAGE_HAS_CATEGORY_CLASS_PROPERTIES";
 5992       outs() << " Swift 1.0";
 5994       outs() << " Swift 1.1";
 5996       outs() << " Swift 2.0";
 5998       outs() << " Swift 3.0";
 6000       outs() << " Swift 4.0";
 6002       outs() << " Swift 4.1/Swift 4.2";
 6004       outs() << " Swift 5 or later";
 6006       outs() << " unknown future Swift version (" << swift_version << ")";
 6008   outs() << "\n";
 6028   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 6036     outs() << "   (objc_image_info entends past the end of the section)\n";
 6041   outs() << "  version " << o.version << "\n";
 6042   outs() << "    flags " << format("0x%" PRIx32, o.flags);
 6044     outs() << " OBJC_IMAGE_IS_REPLACEMENT";
 6046     outs() << " OBJC_IMAGE_SUPPORTS_GC";
 6050       outs() << " Swift 1.0";
 6052       outs() << " Swift 1.1";
 6054       outs() << " Swift 2.0";
 6056       outs() << " Swift 3.0";
 6058       outs() << " Swift 4.0";
 6060       outs() << " Swift 4.1/Swift 4.2";
 6062       outs() << " Swift 5 or later";
 6064       outs() << " unknown future Swift version (" << swift_version << ")";
 6066   outs() << "\n";
 6083   outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
 6091     outs() << " (imageInfo entends past the end of the section)\n";
 6096   outs() << "  version " << o.version << "\n";
 6097   outs() << "    flags " << format("0x%" PRIx32, o.flags);
 6099     outs() << "  F&C";
 6101     outs() << " GC";
 6103     outs() << " GC-only";
 6105     outs() << " RR";
 6106   outs() << "\n";
 6282   outs() << "Objective-C segment\n";
 6305       outs() << "   (module extends past end of __module_info section)\n";
 6311     outs() << "Module " << format("0x%" PRIx32, p) << "\n";
 6312     outs() << "    version " << module.version << "\n";
 6313     outs() << "       size " << module.size << "\n";
 6314     outs() << "       name ";
 6317       outs() << format("%.*s", left, name);
 6319       outs() << format("0x%08" PRIx32, module.name)
 6321     outs() << "\n";
 6325       outs() << "     symtab " << format("0x%08" PRIx32, module.symtab)
 6329     outs() << "     symtab " << format("0x%08" PRIx32, module.symtab) << "\n";
 6335       outs() << "\tsymtab extends past end of an __OBJC section)\n";
 6346     outs() << "\tsel_ref_cnt " << symtab.sel_ref_cnt << "\n";
 6348     outs() << "\trefs " << format("0x%08" PRIx32, symtab.refs);
 6350       outs() << " (not in an __OBJC section)";
 6351     outs() << "\n";
 6352     outs() << "\tcls_def_cnt " << symtab.cls_def_cnt << "\n";
 6353     outs() << "\tcat_def_cnt " << symtab.cat_def_cnt << "\n";
 6355       outs() << "\tClass Definitions\n";
 6358         outs() << "\t(remaining class defs entries entends past the end of the "
 6367       outs() << "\tdefs[" << j << "] " << format("0x%08" PRIx32, def);
 6370           outs() << "\n";
 6373           outs() << " (entends past the end of the section)\n";
 6381         outs() << "(not in an __OBJC section)\n";
 6385         outs() << "\tMeta Class";
 6389             outs() << "\n";
 6392             outs() << " (entends past the end of the section)\n";
 6400           outs() << "(not in an __OBJC section)\n";
 6405       outs() << "\tCategory Definitions\n";
 6408         outs() << "\t(remaining category defs entries entends past the end of "
 6418       outs() << "\tdefs[" << j + symtab.cls_def_cnt << "] "
 6422           outs() << "\n";
 6425           outs() << " (entends past the end of the section)\n";
 6433         outs() << "(not in an __OBJC section)\n";
 6462       outs() << "Protocol extends past end of __protocol section\n";
 6469     outs() << "Protocol " << format("0x%" PRIx32, paddr);
 6471       outs() << "(not in an __OBJC section)\n";
 7427     outs() << "(" << DisSegName << "," << DisSectName << ") section\n";
 7469       outs() << "Can't find -dis-symname: " << DisSymName << "\n";
 7510           outs() << "-dis-symname: " << DisSymName << " not in the section\n";
 7521         outs() << "-dis-symname: __mh_execute_header not in any section\n";
 7544         outs() << "section data ends, " << SymName
 7590         outs() << SymName << ":\n";
 7600           outs() << SymName << ":\n";
 7606               outs() << format("%016" PRIx64, PC);
 7608               outs() << format("%08" PRIx64, PC);
 7610             outs() << format("%8" PRIx64 ":", PC);
 7614           outs() << "\t";
 7631             dumpBytes(makeArrayRef(Bytes.data() + Index, Size), outs());
 7633           formatted_raw_ostream FormattedOS(outs());
 7646               outs() << "\t## " << dli.FileName << ':' << dli.Line << ':'
 7650           outs() << "\n";
 7654             outs() << format("\t.byte 0x%02x #bad opcode\n",
 7663             outs() << format("\t.long\t0x%08x\n", opcode);
 7669             outs() << format("\t.short\t0x%04x\n", opcode);
 7703                 outs() << format("%016" PRIx64, PC);
 7705                 outs() << format("%08" PRIx64, PC);
 7707               outs() << format("%8" PRIx64 ":", PC);
 7711             outs() << "\t";
 7712             dumpBytes(makeArrayRef(Bytes.data() + Index, InstSize), outs());
 7715           IP->printInst(&Inst, outs(), AnnotationsStr, *STI);
 7716           outs() << "\n";
 7720             outs() << format("\t.byte 0x%02x #bad opcode\n",
 7756     outs() << "warning: attempt to read past end of buffer\n";
 7875   outs() << Name;
 7877     outs() << " + " << format("0x%" PRIx64, Addend);
 7886     outs() << "Skipping big-endian __compact_unwind section\n";
 7920       outs() << "Invalid relocation in __compact_unwind section\n";
 7926   outs() << "Contents of __compact_unwind section:\n";
 7928     outs() << "  Entry at offset "
 7932     outs() << "    start:                " << format("0x%" PRIx64,
 7935     outs() << '\n';
 7938     outs() << "    length:               " << format("0x%" PRIx32, Entry.Length)
 7941     outs() << "    compact encoding:     "
 7946       outs() << "    personality function: "
 7950       outs() << '\n';
 7955       outs() << "    LSDA:                 " << format("0x%" PRIx64,
 7958       outs() << '\n';
 7981     outs() << "      [" << i << "]: "
 8017     outs() << "      [" << i << "]: "
 8030     outs() << "Skipping big-endian __unwind_info section\n";
 8034   outs() << "Contents of __unwind_info section:\n";
 8045   outs() << "  Version:                                   "
 8048     outs() << "    Skipping section with unknown version\n";
 8053   outs() << "  Common encodings array section offset:     "
 8056   outs() << "  Number of common encodings in array:       "
 8060   outs() << "  Personality function array section offset: "
 8063   outs() << "  Number of personality functions in array:  "
 8067   outs() << "  Index array section offset:                "
 8070   outs() << "  Number of indices in array:                "
 8083   outs() << "  Common encodings: (count = " << NumCommonEncodings << ")\n";
 8089     outs() << "    encoding[" << i << "]: " << format("0x%08" PRIx32, Encoding)
 8100   outs() << "  Personality functions: (count = " << NumPersonalities << ")\n";
 8104     outs() << "    personality[" << i + 1
 8123   outs() << "  Top level indices: (count = " << NumIndices << ")\n";
 8133     outs() << "    [" << i << "]: "
 8148   outs() << "  LSDA descriptors:\n";
 8157     outs() << "    [" << i << "]: "
 8171   outs() << "  Second level indices:\n";
 8177     outs() << "    Second level index[" << i << "]: "
 8186       outs() << "warning: invalid offset for second level page: " << Pos << '\n';
 8199       outs() << "    Skipping 2nd level page with unknown kind " << Kind
 8241   outs() << "Mach header\n";
 8242   outs() << "      magic cputype cpusubtype  caps    filetype ncmds "
 8246       outs() << "   MH_MAGIC";
 8248       outs() << "MH_MAGIC_64";
 8250       outs() << format(" 0x%08" PRIx32, magic);
 8253       outs() << "    I386";
 8256         outs() << "        ALL";
 8259         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8264       outs() << "  X86_64";
 8267         outs() << "        ALL";
 8270         outs() << "    Haswell";
 8273         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8278       outs() << "     ARM";
 8281         outs() << "        ALL";
 8284         outs() << "        V4T";
 8287         outs() << "      V5TEJ";
 8290         outs() << "     XSCALE";
 8293         outs() << "         V6";
 8296         outs() << "        V6M";
 8299         outs() << "         V7";
 8302         outs() << "       V7EM";
 8305         outs() << "        V7K";
 8308         outs() << "        V7M";
 8311         outs() << "        V7S";
 8314         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8319       outs() << "   ARM64";
 8322         outs() << "        ALL";
 8325         outs() << "          E";
 8328         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8333       outs() << " ARM64_32";
 8336         outs() << "        V8";
 8339         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8344       outs() << "     PPC";
 8347         outs() << "        ALL";
 8350         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8355       outs() << "   PPC64";
 8358         outs() << "        ALL";
 8361         outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8366       outs() << format(" %7d", cputype);
 8367       outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8371       outs() << " LIB64";
 8373       outs() << format("  0x%02" PRIx32,
 8378       outs() << "      OBJECT";
 8381       outs() << "     EXECUTE";
 8384       outs() << "      FVMLIB";
 8387       outs() << "        CORE";
 8390       outs() << "     PRELOAD";
 8393       outs() << "       DYLIB";
 8396       outs() << "  DYLIB_STUB";
 8399       outs() << "    DYLINKER";
 8402       outs() << "      BUNDLE";
 8405       outs() << "        DSYM";
 8408       outs() << "  KEXTBUNDLE";
 8411       outs() << format("  %10u", filetype);
 8414     outs() << format(" %5u", ncmds);
 8415     outs() << format(" %10u", sizeofcmds);
 8418       outs() << "   NOUNDEFS";
 8422       outs() << " INCRLINK";
 8426       outs() << " DYLDLINK";
 8430       outs() << " BINDATLOAD";
 8434       outs() << " PREBOUND";
 8438       outs() << " SPLIT_SEGS";
 8442       outs() << " LAZY_INIT";
 8446       outs() << " TWOLEVEL";
 8450       outs() << " FORCE_FLAT";
 8454       outs() << " NOMULTIDEFS";
 8458       outs() << " NOFIXPREBINDING";
 8462       outs() << " PREBINDABLE";
 8466       outs() << " ALLMODSBOUND";
 8470       outs() << " SUBSECTIONS_VIA_SYMBOLS";
 8474       outs() << " CANONICAL";
 8478       outs() << " WEAK_DEFINES";
 8482       outs() << " BINDS_TO_WEAK";
 8486       outs() << " ALLOW_STACK_EXECUTION";
 8490       outs() << " DEAD_STRIPPABLE_DYLIB";
 8494       outs() << " PIE";
 8498       outs() << " NO_REEXPORTED_DYLIBS";
 8502       outs() << " MH_HAS_TLV_DESCRIPTORS";
 8506       outs() << " MH_NO_HEAP_EXECUTION";
 8510       outs() << " APP_EXTENSION_SAFE";
 8514       outs() << " NLIST_OUTOFSYNC_WITH_DYLDINFO";
 8518       outs() << format(" 0x%08" PRIx32, f);
 8520     outs() << format(" 0x%08" PRIx32, magic);
 8521     outs() << format(" %7d", cputype);
 8522     outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK);
 8523     outs() << format("  0x%02" PRIx32,
 8525     outs() << format("  %10u", filetype);
 8526     outs() << format(" %5u", ncmds);
 8527     outs() << format(" %10u", sizeofcmds);
 8528     outs() << format(" 0x%08" PRIx32, flags);
 8530   outs() << "\n";
 8542     outs() << "      cmd LC_SEGMENT\n";
 8547     outs() << "      cmd LC_SEGMENT_64\n";
 8552   outs() << "  cmdsize " << cmdsize;
 8554     outs() << " Inconsistent size\n";
 8556     outs() << "\n";
 8557   outs() << "  segname " << SegName << "\n";
 8559     outs() << "   vmaddr " << format("0x%016" PRIx64, vmaddr) << "\n";
 8560     outs() << "   vmsize " << format("0x%016" PRIx64, vmsize) << "\n";
 8562     outs() << "   vmaddr " << format("0x%08" PRIx64, vmaddr) << "\n";
 8563     outs() << "   vmsize " << format("0x%08" PRIx64, vmsize) << "\n";
 8565   outs() << "  fileoff " << fileoff;
 8567     outs() << " (past end of file)\n";
 8569     outs() << "\n";
 8570   outs() << " filesize " << filesize;
 8572     outs() << " (past end of file)\n";
 8574     outs() << "\n";
 8579       outs() << "  maxprot ?" << format("0x%08" PRIx32, maxprot) << "\n";
 8581       outs() << "  maxprot ";
 8582       outs() << ((maxprot & MachO::VM_PROT_READ) ? "r" : "-");
 8583       outs() << ((maxprot & MachO::VM_PROT_WRITE) ? "w" : "-");
 8584       outs() << ((maxprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n");
 8589       outs() << " initprot ?" << format("0x%08" PRIx32, initprot) << "\n";
 8591       outs() << " initprot ";
 8592       outs() << ((initprot & MachO::VM_PROT_READ) ? "r" : "-");
 8593       outs() << ((initprot & MachO::VM_PROT_WRITE) ? "w" : "-");
 8594       outs() << ((initprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n");
 8597     outs() << "  maxprot " << format("0x%08" PRIx32, maxprot) << "\n";
 8598     outs() << " initprot " << format("0x%08" PRIx32, initprot) << "\n";
 8600   outs() << "   nsects " << nsects << "\n";
 8602     outs() << "    flags";
 8604       outs() << " (none)\n";
 8607         outs() << " HIGHVM";
 8611         outs() << " FVMLIB";
 8615         outs() << " NORELOC";
 8619         outs() << " PROTECTED_VERSION_1";
 8623         outs() << format(" 0x%08" PRIx32, flags) << " (unknown flags)\n";
 8625         outs() << "\n";
 8628     outs() << "    flags " << format("0x%" PRIx32, flags) << "\n";
 8639   outs() << "Section\n";
 8640   outs() << "  sectname " << format("%.16s\n", sectname);
 8641   outs() << "   segname " << format("%.16s", segname);
 8643     outs() << " (does not match segment)\n";
 8645     outs() << "\n";
 8647     outs() << "      addr " << format("0x%016" PRIx64, addr) << "\n";
 8648     outs() << "      size " << format("0x%016" PRIx64, size);
 8650     outs() << "      addr " << format("0x%08" PRIx64, addr) << "\n";
 8651     outs() << "      size " << format("0x%08" PRIx64, size);
 8654     outs() << " (past end of file)\n";
 8656     outs() << "\n";
 8657   outs() << "    offset " << offset;
 8659     outs() << " (past end of file)\n";
 8661     outs() << "\n";
 8663   outs() << "     align 2^" << align << " (" << align_shifted << ")\n";
 8664   outs() << "    reloff " << reloff;
 8666     outs() << " (past end of file)\n";
 8668     outs() << "\n";
 8669   outs() << "    nreloc " << nreloc;
 8671     outs() << " (past end of file)\n";
 8673     outs() << "\n";
 8676     outs() << "      type";
 8678       outs() << " S_REGULAR\n";
 8680       outs() << " S_ZEROFILL\n";
 8682       outs() << " S_CSTRING_LITERALS\n";
 8684       outs() << " S_4BYTE_LITERALS\n";
 8686       outs() << " S_8BYTE_LITERALS\n";
 8688       outs() << " S_16BYTE_LITERALS\n";
 8690       outs() << " S_LITERAL_POINTERS\n";
 8692       outs() << " S_NON_LAZY_SYMBOL_POINTERS\n";
 8694       outs() << " S_LAZY_SYMBOL_POINTERS\n";
 8696       outs() << " S_SYMBOL_STUBS\n";
 8698       outs() << " S_MOD_INIT_FUNC_POINTERS\n";
 8700       outs() << " S_MOD_TERM_FUNC_POINTERS\n";
 8702       outs() << " S_COALESCED\n";
 8704       outs() << " S_INTERPOSING\n";
 8706       outs() << " S_DTRACE_DOF\n";
 8708       outs() << " S_LAZY_DYLIB_SYMBOL_POINTERS\n";
 8710       outs() << " S_THREAD_LOCAL_REGULAR\n";
 8712       outs() << " S_THREAD_LOCAL_ZEROFILL\n";
 8714       outs() << " S_THREAD_LOCAL_VARIABLES\n";
 8716       outs() << " S_THREAD_LOCAL_VARIABLE_POINTERS\n";
 8718       outs() << " S_THREAD_LOCAL_INIT_FUNCTION_POINTERS\n";
 8720       outs() << format("0x%08" PRIx32, section_type) << "\n";
 8721     outs() << "attributes";
 8724       outs() << " PURE_INSTRUCTIONS";
 8726       outs() << " NO_TOC";
 8728       outs() << " STRIP_STATIC_SYMS";
 8730       outs() << " NO_DEAD_STRIP";
 8732       outs() << " LIVE_SUPPORT";
 8734       outs() << " SELF_MODIFYING_CODE";
 8736       outs() << " DEBUG";
 8738       outs() << " SOME_INSTRUCTIONS";
 8740       outs() << " EXT_RELOC";
 8742       outs() << " LOC_RELOC";
 8744       outs() << " (none)";
 8745     outs() << "\n";
 8747     outs() << "     flags " << format("0x%08" PRIx32, flags) << "\n";
 8748   outs() << " reserved1 " << reserved1;
 8754     outs() << " (index into indirect symbol table)\n";
 8756     outs() << "\n";
 8757   outs() << " reserved2 " << reserved2;
 8759     outs() << " (size of stubs)\n";
 8761     outs() << "\n";
 8766   outs() << "     cmd LC_SYMTAB\n";
 8767   outs() << " cmdsize " << st.cmdsize;
 8769     outs() << " Incorrect size\n";
 8771     outs() << "\n";
 8772   outs() << "  symoff " << st.symoff;
 8774     outs() << " (past end of file)\n";
 8776     outs() << "\n";
 8777   outs() << "   nsyms " << st.nsyms;
 8784       outs() << " (past end of file)\n";
 8786       outs() << "\n";
 8792       outs() << " (past end of file)\n";
 8794       outs() << "\n";
 8796   outs() << "  stroff " << st.stroff;
 8798     outs() << " (past end of file)\n";
 8800     outs() << "\n";
 8801   outs() << " strsize " << st.strsize;
 8805     outs() << " (past end of file)\n";
 8807     outs() << "\n";
 8813   outs() << "            cmd LC_DYSYMTAB\n";
 8814   outs() << "        cmdsize " << dyst.cmdsize;
 8816     outs() << " Incorrect size\n";
 8818     outs() << "\n";
 8819   outs() << "      ilocalsym " << dyst.ilocalsym;
 8821     outs() << " (greater than the number of symbols)\n";
 8823     outs() << "\n";
 8824   outs() << "      nlocalsym " << dyst.nlocalsym;
 8829     outs() << " (past the end of the symbol table)\n";
 8831     outs() << "\n";
 8832   outs() << "     iextdefsym " << dyst.iextdefsym;
 8834     outs() << " (greater than the number of symbols)\n";
 8836     outs() << "\n";
 8837   outs() << "     nextdefsym " << dyst.nextdefsym;
 8841     outs() << " (past the end of the symbol table)\n";
 8843     outs() << "\n";
 8844   outs() << "      iundefsym " << dyst.iundefsym;
 8846     outs() << " (greater than the number of symbols)\n";
 8848     outs() << "\n";
 8849   outs() << "      nundefsym " << dyst.nundefsym;
 8853     outs() << " (past the end of the symbol table)\n";
 8855     outs() << "\n";
 8856   outs() << "         tocoff " << dyst.tocoff;
 8858     outs() << " (past end of file)\n";
 8860     outs() << "\n";
 8861   outs() << "           ntoc " << dyst.ntoc;
 8866     outs() << " (past end of file)\n";
 8868     outs() << "\n";
 8869   outs() << "      modtaboff " << dyst.modtaboff;
 8871     outs() << " (past end of file)\n";
 8873     outs() << "\n";
 8874   outs() << "        nmodtab " << dyst.nmodtab;
 8886     outs() << " (past end of file)\n";
 8888     outs() << "\n";
 8889   outs() << "   extrefsymoff " << dyst.extrefsymoff;
 8891     outs() << " (past end of file)\n";
 8893     outs() << "\n";
 8894   outs() << "    nextrefsyms " << dyst.nextrefsyms;
 8899     outs() << " (past end of file)\n";
 8901     outs() << "\n";
 8902   outs() << " indirectsymoff " << dyst.indirectsymoff;
 8904     outs() << " (past end of file)\n";
 8906     outs() << "\n";
 8907   outs() << "  nindirectsyms " << dyst.nindirectsyms;
 8912     outs() << " (past end of file)\n";
 8914     outs() << "\n";
 8915   outs() << "      extreloff " << dyst.extreloff;
 8917     outs() << " (past end of file)\n";
 8919     outs() << "\n";
 8920   outs() << "        nextrel " << dyst.nextrel;
 8925     outs() << " (past end of file)\n";
 8927     outs() << "\n";
 8928   outs() << "      locreloff " << dyst.locreloff;
 8930     outs() << " (past end of file)\n";
 8932     outs() << "\n";
 8933   outs() << "        nlocrel " << dyst.nlocrel;
 8938     outs() << " (past end of file)\n";
 8940     outs() << "\n";
 8946     outs() << "            cmd LC_DYLD_INFO\n";
 8948     outs() << "            cmd LC_DYLD_INFO_ONLY\n";
 8949   outs() << "        cmdsize " << dc.cmdsize;
 8951     outs() << " Incorrect size\n";
 8953     outs() << "\n";
 8954   outs() << "     rebase_off " << dc.rebase_off;
 8956     outs() << " (past end of file)\n";
 8958     outs() << "\n";
 8959   outs() << "    rebase_size " << dc.rebase_size;
 8964     outs() << " (past end of file)\n";
 8966     outs() << "\n";
 8967   outs() << "       bind_off " << dc.bind_off;
 8969     outs() << " (past end of file)\n";
 8971     outs() << "\n";
 8972   outs() << "      bind_size " << dc.bind_size;
 8976     outs() << " (past end of file)\n";
 8978     outs() << "\n";
 8979   outs() << "  weak_bind_off " << dc.weak_bind_off;
 8981     outs() << " (past end of file)\n";
 8983     outs() << "\n";
 8984   outs() << " weak_bind_size " << dc.weak_bind_size;
 8988     outs() << " (past end of file)\n";
 8990     outs() << "\n";
 8991   outs() << "  lazy_bind_off " << dc.lazy_bind_off;
 8993     outs() << " (past end of file)\n";
 8995     outs() << "\n";
 8996   outs() << " lazy_bind_size " << dc.lazy_bind_size;
 9000     outs() << " (past end of file)\n";
 9002     outs() << "\n";
 9003   outs() << "     export_off " << dc.export_off;
 9005     outs() << " (past end of file)\n";
 9007     outs() << "\n";
 9008   outs() << "    export_size " << dc.export_size;
 9012     outs() << " (past end of file)\n";
 9014     outs() << "\n";
 9020     outs() << "          cmd LC_ID_DYLINKER\n";
 9022     outs() << "          cmd LC_LOAD_DYLINKER\n";
 9024     outs() << "          cmd LC_DYLD_ENVIRONMENT\n";
 9026     outs() << "          cmd ?(" << dyld.cmd << ")\n";
 9027   outs() << "      cmdsize " << dyld.cmdsize;
 9029     outs() << " Incorrect size\n";
 9031     outs() << "\n";
 9033     outs() << "         name ?(bad offset " << dyld.name << ")\n";
 9036     outs() << "         name " << P << " (offset " << dyld.name << ")\n";
 9041   outs() << "     cmd LC_UUID\n";
 9042   outs() << " cmdsize " << uuid.cmdsize;
 9044     outs() << " Incorrect size\n";
 9046     outs() << "\n";
 9047   outs() << "    uuid ";
 9049     outs() << format("%02" PRIX32, uuid.uuid[i]);
 9051       outs() << "-";
 9053   outs() << "\n";
 9057   outs() << "          cmd LC_RPATH\n";
 9058   outs() << "      cmdsize " << rpath.cmdsize;
 9060     outs() << " Incorrect size\n";
 9062     outs() << "\n";
 9064     outs() << "         path ?(bad offset " << rpath.path << ")\n";
 9067     outs() << "         path " << P << " (offset " << rpath.path << ")\n";
 9090   outs() << "      cmd " << LoadCmdName << '\n';
 9091   outs() << "  cmdsize " << vd.cmdsize;
 9093     outs() << " Incorrect size\n";
 9095     outs() << "\n";
 9096   outs() << "  version "
 9101     outs() << "." << Update;
 9102   outs() << "\n";
 9104     outs() << "      sdk n/a";
 9106     outs() << "      sdk "
 9112     outs() << "." << Update;
 9113   outs() << "\n";
 9117   outs() << "       cmd LC_NOTE\n";
 9118   outs() << "   cmdsize " << Nt.cmdsize;
 9120     outs() << " Incorrect size\n";
 9122     outs() << "\n";
 9124   outs() << "data_owner " << format("%.16s\n", d);
 9125   outs() << "    offset " << Nt.offset << "\n";
 9126   outs() << "      size " << Nt.size << "\n";
 9130   outs() << "      tool " << MachOObjectFile::getBuildTool(bv.tool) << "\n";
 9131   outs() << "   version " << MachOObjectFile::getVersionString(bv.version)
 9137   outs() << "       cmd LC_BUILD_VERSION\n";
 9138   outs() << "   cmdsize " << bd.cmdsize;
 9142     outs() << " Incorrect size\n";
 9144     outs() << "\n";
 9145   outs() << "  platform " << MachOObjectFile::getBuildPlatform(bd.platform)
 9148     outs() << "       sdk " << MachOObjectFile::getVersionString(bd.sdk)
 9151     outs() << "       sdk n/a\n";
 9152   outs() << "     minos " << MachOObjectFile::getVersionString(bd.minos)
 9154   outs() << "    ntools " << bd.ntools << "\n";
 9162   outs() << "      cmd LC_SOURCE_VERSION\n";
 9163   outs() << "  cmdsize " << sd.cmdsize;
 9165     outs() << " Incorrect size\n";
 9167     outs() << "\n";
 9173   outs() << "  version " << a << "." << b;
 9175     outs() << "." << c << "." << d << "." << e;
 9177     outs() << "." << c << "." << d;
 9179     outs() << "." << c;
 9180   outs() << "\n";
 9184   outs() << "       cmd LC_MAIN\n";
 9185   outs() << "   cmdsize " << ep.cmdsize;
 9187     outs() << " Incorrect size\n";
 9189     outs() << "\n";
 9190   outs() << "  entryoff " << ep.entryoff << "\n";
 9191   outs() << " stacksize " << ep.stacksize << "\n";
 9196   outs() << "          cmd LC_ENCRYPTION_INFO\n";
 9197   outs() << "      cmdsize " << ec.cmdsize;
 9199     outs() << " Incorrect size\n";
 9201     outs() << "\n";
 9202   outs() << "     cryptoff " << ec.cryptoff;
 9204     outs() << " (past end of file)\n";
 9206     outs() << "\n";
 9207   outs() << "    cryptsize " << ec.cryptsize;
 9209     outs() << " (past end of file)\n";
 9211     outs() << "\n";
 9212   outs() << "      cryptid " << ec.cryptid << "\n";
 9217   outs() << "          cmd LC_ENCRYPTION_INFO_64\n";
 9218   outs() << "      cmdsize " << ec.cmdsize;
 9220     outs() << " Incorrect size\n";
 9222     outs() << "\n";
 9223   outs() << "     cryptoff " << ec.cryptoff;
 9225     outs() << " (past end of file)\n";
 9227     outs() << "\n";
 9228   outs() << "    cryptsize " << ec.cryptsize;
 9230     outs() << " (past end of file)\n";
 9232     outs() << "\n";
 9233   outs() << "      cryptid " << ec.cryptid << "\n";
 9234   outs() << "          pad " << ec.pad << "\n";
 9239   outs() << "     cmd LC_LINKER_OPTION\n";
 9240   outs() << " cmdsize " << lo.cmdsize;
 9242     outs() << " Incorrect size\n";
 9244     outs() << "\n";
 9245   outs() << "   count " << lo.count << "\n";
 9256       outs() << "  string #" << i << " " << format("%.*s\n", left, string);
 9264     outs() << "   count " << lo.count << " does not match number of strings "
 9270   outs() << "          cmd LC_SUB_FRAMEWORK\n";
 9271   outs() << "      cmdsize " << sub.cmdsize;
 9273     outs() << " Incorrect size\n";
 9275     outs() << "\n";
 9278     outs() << "     umbrella " << P << " (offset " << sub.umbrella << ")\n";
 9280     outs() << "     umbrella ?(bad offset " << sub.umbrella << ")\n";
 9286   outs() << "          cmd LC_SUB_UMBRELLA\n";
 9287   outs() << "      cmdsize " << sub.cmdsize;
 9289     outs() << " Incorrect size\n";
 9291     outs() << "\n";
 9294     outs() << " sub_umbrella " << P << " (offset " << sub.sub_umbrella << ")\n";
 9296     outs() << " sub_umbrella ?(bad offset " << sub.sub_umbrella << ")\n";
 9302   outs() << "          cmd LC_SUB_LIBRARY\n";
 9303   outs() << "      cmdsize " << sub.cmdsize;
 9305     outs() << " Incorrect size\n";
 9307     outs() << "\n";
 9310     outs() << "  sub_library " << P << " (offset " << sub.sub_library << ")\n";
 9312     outs() << "  sub_library ?(bad offset " << sub.sub_library << ")\n";
 9318   outs() << "          cmd LC_SUB_CLIENT\n";
 9319   outs() << "      cmdsize " << sub.cmdsize;
 9321     outs() << " Incorrect size\n";
 9323     outs() << "\n";
 9326     outs() << "       client " << P << " (offset " << sub.client << ")\n";
 9328     outs() << "       client ?(bad offset " << sub.client << ")\n";
 9333   outs() << "          cmd LC_ROUTINES\n";
 9334   outs() << "      cmdsize " << r.cmdsize;
 9336     outs() << " Incorrect size\n";
 9338     outs() << "\n";
 9339   outs() << " init_address " << format("0x%08" PRIx32, r.init_address) << "\n";
 9340   outs() << "  init_module " << r.init_module << "\n";
 9341   outs() << "    reserved1 " << r.reserved1 << "\n";
 9342   outs() << "    reserved2 " << r.reserved2 << "\n";
 9343   outs() << "    reserved3 " << r.reserved3 << "\n";
 9344   outs() << "    reserved4 " << r.reserved4 << "\n";
 9345   outs() << "    reserved5 " << r.reserved5 << "\n";
 9346   outs() << "    reserved6 " << r.reserved6 << "\n";
 9350   outs() << "          cmd LC_ROUTINES_64\n";
 9351   outs() << "      cmdsize " << r.cmdsize;
 9353     outs() << " Incorrect size\n";
 9355     outs() << "\n";
 9356   outs() << " init_address " << format("0x%016" PRIx64, r.init_address) << "\n";
 9357   outs() << "  init_module " << r.init_module << "\n";
 9358   outs() << "    reserved1 " << r.reserved1 << "\n";
 9359   outs() << "    reserved2 " << r.reserved2 << "\n";
 9360   outs() << "    reserved3 " << r.reserved3 << "\n";
 9361   outs() << "    reserved4 " << r.reserved4 << "\n";
 9362   outs() << "    reserved5 " << r.reserved5 << "\n";
 9363   outs() << "    reserved6 " << r.reserved6 << "\n";
 9367   outs() << "\t    eax " << format("0x%08" PRIx32, cpu32.eax);
 9368   outs() << " ebx    " << format("0x%08" PRIx32, cpu32.ebx);
 9369   outs() << " ecx " << format("0x%08" PRIx32, cpu32.ecx);
 9370   outs() << " edx " << format("0x%08" PRIx32, cpu32.edx) << "\n";
 9371   outs() << "\t    edi " << format("0x%08" PRIx32, cpu32.edi);
 9372   outs() << " esi    " << format("0x%08" PRIx32, cpu32.esi);
 9373   outs() << " ebp " << format("0x%08" PRIx32, cpu32.ebp);
 9374   outs() << " esp " << format("0x%08" PRIx32, cpu32.esp) << "\n";
 9375   outs() << "\t    ss  " << format("0x%08" PRIx32, cpu32.ss);
 9376   outs() << " eflags " << format("0x%08" PRIx32, cpu32.eflags);
 9377   outs() << " eip " << format("0x%08" PRIx32, cpu32.eip);
 9378   outs() << " cs  " << format("0x%08" PRIx32, cpu32.cs) << "\n";
 9379   outs() << "\t    ds  " << format("0x%08" PRIx32, cpu32.ds);
 9380   outs() << " es     " << format("0x%08" PRIx32, cpu32.es);
 9381   outs() << " fs  " << format("0x%08" PRIx32, cpu32.fs);
 9382   outs() << " gs  " << format("0x%08" PRIx32, cpu32.gs) << "\n";
 9386   outs() << "   rax  " << format("0x%016" PRIx64, cpu64.rax);
 9387   outs() << " rbx " << format("0x%016" PRIx64, cpu64.rbx);
 9388   outs() << " rcx  " << format("0x%016" PRIx64, cpu64.rcx) << "\n";
 9389   outs() << "   rdx  " << format("0x%016" PRIx64, cpu64.rdx);
 9390   outs() << " rdi " << format("0x%016" PRIx64, cpu64.rdi);
 9391   outs() << " rsi  " << format("0x%016" PRIx64, cpu64.rsi) << "\n";
 9392   outs() << "   rbp  " << format("0x%016" PRIx64, cpu64.rbp);
 9393   outs() << " rsp " << format("0x%016" PRIx64, cpu64.rsp);
 9394   outs() << " r8   " << format("0x%016" PRIx64, cpu64.r8) << "\n";
 9395   outs() << "    r9  " << format("0x%016" PRIx64, cpu64.r9);
 9396   outs() << " r10 " << format("0x%016" PRIx64, cpu64.r10);
 9397   outs() << " r11  " << format("0x%016" PRIx64, cpu64.r11) << "\n";
 9398   outs() << "   r12  " << format("0x%016" PRIx64, cpu64.r12);
 9399   outs() << " r13 " << format("0x%016" PRIx64, cpu64.r13);
 9400   outs() << " r14  " << format("0x%016" PRIx64, cpu64.r14) << "\n";
 9401   outs() << "   r15  " << format("0x%016" PRIx64, cpu64.r15);
 9402   outs() << " rip " << format("0x%016" PRIx64, cpu64.rip) << "\n";
 9403   outs() << "rflags  " << format("0x%016" PRIx64, cpu64.rflags);
 9404   outs() << " cs  " << format("0x%016" PRIx64, cpu64.cs);
 9405   outs() << " fs   " << format("0x%016" PRIx64, cpu64.fs) << "\n";
 9406   outs() << "    gs  " << format("0x%016" PRIx64, cpu64.gs) << "\n";
 9411   outs() << "\t      mmst_reg  ";
 9413     outs() << format("%02" PRIx32, (r.mmst_reg[f] & 0xff)) << " ";
 9414   outs() << "\n";
 9415   outs() << "\t      mmst_rsrv ";
 9417     outs() << format("%02" PRIx32, (r.mmst_rsrv[f] & 0xff)) << " ";
 9418   outs() << "\n";
 9423   outs() << "\t      xmm_reg ";
 9425     outs() << format("%02" PRIx32, (r.xmm_reg[f] & 0xff)) << " ";
 9426   outs() << "\n";
 9430   outs() << "\t    fpu_reserved[0] " << fpu.fpu_reserved[0];
 9431   outs() << " fpu_reserved[1] " << fpu.fpu_reserved[1] << "\n";
 9432   outs() << "\t    control: invalid " << fpu.fpu_fcw.invalid;
 9433   outs() << " denorm " << fpu.fpu_fcw.denorm;
 9434   outs() << " zdiv " << fpu.fpu_fcw.zdiv;
 9435   outs() << " ovrfl " << fpu.fpu_fcw.ovrfl;
 9436   outs() << " undfl " << fpu.fpu_fcw.undfl;
 9437   outs() << " precis " << fpu.fpu_fcw.precis << "\n";
 9438   outs() << "\t\t     pc ";
 9440     outs() << "FP_PREC_24B ";
 9442     outs() << "FP_PREC_53B ";
 9444     outs() << "FP_PREC_64B ";
 9446     outs() << fpu.fpu_fcw.pc << " ";
 9447   outs() << "rc ";
 9449     outs() << "FP_RND_NEAR ";
 9451     outs() << "FP_RND_DOWN ";
 9453     outs() << "FP_RND_UP ";
 9455     outs() << "FP_CHOP ";
 9456   outs() << "\n";
 9457   outs() << "\t    status: invalid " << fpu.fpu_fsw.invalid;
 9458   outs() << " denorm " << fpu.fpu_fsw.denorm;
 9459   outs() << " zdiv " << fpu.fpu_fsw.zdiv;
 9460   outs() << " ovrfl " << fpu.fpu_fsw.ovrfl;
 9461   outs() << " undfl " << fpu.fpu_fsw.undfl;
 9462   outs() << " precis " << fpu.fpu_fsw.precis;
 9463   outs() << " stkflt " << fpu.fpu_fsw.stkflt << "\n";
 9464   outs() << "\t            errsumm " << fpu.fpu_fsw.errsumm;
 9465   outs() << " c0 " << fpu.fpu_fsw.c0;
 9466   outs() << " c1 " << fpu.fpu_fsw.c1;
 9467   outs() << " c2 " << fpu.fpu_fsw.c2;
 9468   outs() << " tos " << fpu.fpu_fsw.tos;
 9469   outs() << " c3 " << fpu.fpu_fsw.c3;
 9470   outs() << " busy " << fpu.fpu_fsw.busy << "\n";
 9471   outs() << "\t    fpu_ftw " << format("0x%02" PRIx32, fpu.fpu_ftw);
 9472   outs() << " fpu_rsrv1 " << format("0x%02" PRIx32, fpu.fpu_rsrv1);
 9473   outs() << " fpu_fop " << format("0x%04" PRIx32, fpu.fpu_fop);
 9474   outs() << " fpu_ip " << format("0x%08" PRIx32, fpu.fpu_ip) << "\n";
 9475   outs() << "\t    fpu_cs " << format("0x%04" PRIx32, fpu.fpu_cs);
 9476   outs() << " fpu_rsrv2 " << format("0x%04" PRIx32, fpu.fpu_rsrv2);
 9477   outs() << " fpu_dp " << format("0x%08" PRIx32, fpu.fpu_dp);
 9478   outs() << " fpu_ds " << format("0x%04" PRIx32, fpu.fpu_ds) << "\n";
 9479   outs() << "\t    fpu_rsrv3 " << format("0x%04" PRIx32, fpu.fpu_rsrv3);
 9480   outs() << " fpu_mxcsr " << format("0x%08" PRIx32, fpu.fpu_mxcsr);
 9481   outs() << " fpu_mxcsrmask " << format("0x%08" PRIx32, fpu.fpu_mxcsrmask);
 9482   outs() << "\n";
 9483   outs() << "\t    fpu_stmm0:\n";
 9485   outs() << "\t    fpu_stmm1:\n";
 9487   outs() << "\t    fpu_stmm2:\n";
 9489   outs() << "\t    fpu_stmm3:\n";
 9491   outs() << "\t    fpu_stmm4:\n";
 9493   outs() << "\t    fpu_stmm5:\n";
 9495   outs() << "\t    fpu_stmm6:\n";
 9497   outs() << "\t    fpu_stmm7:\n";
 9499   outs() << "\t    fpu_xmm0:\n";
 9501   outs() << "\t    fpu_xmm1:\n";
 9503   outs() << "\t    fpu_xmm2:\n";
 9505   outs() << "\t    fpu_xmm3:\n";
 9507   outs() << "\t    fpu_xmm4:\n";
 9509   outs() << "\t    fpu_xmm5:\n";
 9511   outs() << "\t    fpu_xmm6:\n";
 9513   outs() << "\t    fpu_xmm7:\n";
 9515   outs() << "\t    fpu_xmm8:\n";
 9517   outs() << "\t    fpu_xmm9:\n";
 9519   outs() << "\t    fpu_xmm10:\n";
 9521   outs() << "\t    fpu_xmm11:\n";
 9523   outs() << "\t    fpu_xmm12:\n";
 9525   outs() << "\t    fpu_xmm13:\n";
 9527   outs() << "\t    fpu_xmm14:\n";
 9529   outs() << "\t    fpu_xmm15:\n";
 9531   outs() << "\t    fpu_rsrv4:\n";
 9533     outs() << "\t            ";
 9535       outs() << format("%02" PRIx32, fpu.fpu_rsrv4[f * g]) << " ";
 9536     outs() << "\n";
 9538   outs() << "\t    fpu_reserved1 " << format("0x%08" PRIx32, fpu.fpu_reserved1);
 9539   outs() << "\n";
 9543   outs() << "\t    trapno " << format("0x%08" PRIx32, exc64.trapno);
 9544   outs() << " err " << format("0x%08" PRIx32, exc64.err);
 9545   outs() << " faultvaddr " << format("0x%016" PRIx64, exc64.faultvaddr) << "\n";
 9549   outs() << "\t    r0  " << format("0x%08" PRIx32, cpu32.r[0]);
 9550   outs() << " r1     "   << format("0x%08" PRIx32, cpu32.r[1]);
 9551   outs() << " r2  "      << format("0x%08" PRIx32, cpu32.r[2]);
 9552   outs() << " r3  "      << format("0x%08" PRIx32, cpu32.r[3]) << "\n";
 9553   outs() << "\t    r4  " << format("0x%08" PRIx32, cpu32.r[4]);
 9554   outs() << " r5     "   << format("0x%08" PRIx32, cpu32.r[5]);
 9555   outs() << " r6  "      << format("0x%08" PRIx32, cpu32.r[6]);
 9556   outs() << " r7  "      << format("0x%08" PRIx32, cpu32.r[7]) << "\n";
 9557   outs() << "\t    r8  " << format("0x%08" PRIx32, cpu32.r[8]);
 9558   outs() << " r9     "   << format("0x%08" PRIx32, cpu32.r[9]);
 9559   outs() << " r10 "      << format("0x%08" PRIx32, cpu32.r[10]);
 9560   outs() << " r11 "      << format("0x%08" PRIx32, cpu32.r[11]) << "\n";
 9561   outs() << "\t    r12 " << format("0x%08" PRIx32, cpu32.r[12]);
 9562   outs() << " sp     "   << format("0x%08" PRIx32, cpu32.sp);
 9563   outs() << " lr  "      << format("0x%08" PRIx32, cpu32.lr);
 9564   outs() << " pc  "      << format("0x%08" PRIx32, cpu32.pc) << "\n";
 9565   outs() << "\t   cpsr " << format("0x%08" PRIx32, cpu32.cpsr) << "\n";
 9569   outs() << "\t    x0  " << format("0x%016" PRIx64, cpu64.x[0]);
 9570   outs() << " x1  "      << format("0x%016" PRIx64, cpu64.x[1]);
 9571   outs() << " x2  "      << format("0x%016" PRIx64, cpu64.x[2]) << "\n";
 9572   outs() << "\t    x3  " << format("0x%016" PRIx64, cpu64.x[3]);
 9573   outs() << " x4  "      << format("0x%016" PRIx64, cpu64.x[4]);
 9574   outs() << " x5  "      << format("0x%016" PRIx64, cpu64.x[5]) << "\n";
 9575   outs() << "\t    x6  " << format("0x%016" PRIx64, cpu64.x[6]);
 9576   outs() << " x7  "      << format("0x%016" PRIx64, cpu64.x[7]);
 9577   outs() << " x8  "      << format("0x%016" PRIx64, cpu64.x[8]) << "\n";
 9578   outs() << "\t    x9  " << format("0x%016" PRIx64, cpu64.x[9]);
 9579   outs() << " x10 "      << format("0x%016" PRIx64, cpu64.x[10]);
 9580   outs() << " x11 "      << format("0x%016" PRIx64, cpu64.x[11]) << "\n";
 9581   outs() << "\t    x12 " << format("0x%016" PRIx64, cpu64.x[12]);
 9582   outs() << " x13 "      << format("0x%016" PRIx64, cpu64.x[13]);
 9583   outs() << " x14 "      << format("0x%016" PRIx64, cpu64.x[14]) << "\n";
 9584   outs() << "\t    x15 " << format("0x%016" PRIx64, cpu64.x[15]);
 9585   outs() << " x16 "      << format("0x%016" PRIx64, cpu64.x[16]);
 9586   outs() << " x17 "      << format("0x%016" PRIx64, cpu64.x[17]) << "\n";
 9587   outs() << "\t    x18 " << format("0x%016" PRIx64, cpu64.x[18]);
 9588   outs() << " x19 "      << format("0x%016" PRIx64, cpu64.x[19]);
 9589   outs() << " x20 "      << format("0x%016" PRIx64, cpu64.x[20]) << "\n";
 9590   outs() << "\t    x21 " << format("0x%016" PRIx64, cpu64.x[21]);
 9591   outs() << " x22 "      << format("0x%016" PRIx64, cpu64.x[22]);
 9592   outs() << " x23 "      << format("0x%016" PRIx64, cpu64.x[23]) << "\n";
 9593   outs() << "\t    x24 " << format("0x%016" PRIx64, cpu64.x[24]);
 9594   outs() << " x25 "      << format("0x%016" PRIx64, cpu64.x[25]);
 9595   outs() << " x26 "      << format("0x%016" PRIx64, cpu64.x[26]) << "\n";
 9596   outs() << "\t    x27 " << format("0x%016" PRIx64, cpu64.x[27]);
 9597   outs() << " x28 "      << format("0x%016" PRIx64, cpu64.x[28]);
 9598   outs() << "  fp "      << format("0x%016" PRIx64, cpu64.fp) << "\n";
 9599   outs() << "\t     lr " << format("0x%016" PRIx64, cpu64.lr);
 9600   outs() << " sp  "      << format("0x%016" PRIx64, cpu64.sp);
 9601   outs() << "  pc "      << format("0x%016" PRIx64, cpu64.pc) << "\n";
 9602   outs() << "\t   cpsr " << format("0x%08"  PRIx32, cpu64.cpsr) << "\n";
 9608     outs() << "        cmd LC_THREAD\n";
 9610     outs() << "        cmd LC_UNIXTHREAD\n";
 9612     outs() << "        cmd " << t.cmd << " (unknown)\n";
 9613   outs() << "    cmdsize " << t.cmdsize;
 9615     outs() << " Incorrect size\n";
 9617     outs() << "\n";
 9643         outs() << "     flavor i386_THREAD_STATE\n";
 9645           outs() << "      count i386_THREAD_STATE_COUNT\n";
 9647           outs() << "      count " << count
 9663         outs() << "     flavor x86_THREAD_STATE\n";
 9665           outs() << "      count x86_THREAD_STATE_COUNT\n";
 9667           outs() << "      count " << count
 9682           outs() << "\t    tsh.flavor x86_THREAD_STATE32 ";
 9684             outs() << "tsh.count x86_THREAD_STATE32_COUNT\n";
 9686             outs() << "tsh.count " << ts.tsh.count
 9690           outs() << "\t    tsh.flavor " << ts.tsh.flavor << "  tsh.count "
 9694         outs() << "     flavor " << flavor << " (unknown)\n";
 9695         outs() << "      count " << count << "\n";
 9696         outs() << "      state (unknown)\n";
 9721         outs() << "     flavor x86_THREAD_STATE64\n";
 9723           outs() << "      count x86_THREAD_STATE64_COUNT\n";
 9725           outs() << "      count " << count
 9741         outs() << "     flavor x86_THREAD_STATE\n";
 9743           outs() << "      count x86_THREAD_STATE_COUNT\n";
 9745           outs() << "      count " << count
 9760           outs() << "\t    tsh.flavor x86_THREAD_STATE64 ";
 9762             outs() << "tsh.count x86_THREAD_STATE64_COUNT\n";
 9764             outs() << "tsh.count " << ts.tsh.count
 9768           outs() << "\t    tsh.flavor " << ts.tsh.flavor << "  tsh.count "
 9772         outs() << "     flavor x86_FLOAT_STATE\n";
 9774           outs() << "      count x86_FLOAT_STATE_COUNT\n";
 9776           outs() << "      count " << count << " (not x86_FLOAT_STATE_COUNT)\n";
 9790           outs() << "\t    fsh.flavor x86_FLOAT_STATE64 ";
 9792             outs() << "fsh.count x86_FLOAT_STATE64_COUNT\n";
 9794             outs() << "fsh.count " << fs.fsh.count
 9798           outs() << "\t    fsh.flavor " << fs.fsh.flavor << "  fsh.count "
 9802         outs() << "     flavor x86_EXCEPTION_STATE\n";
 9804           outs() << "      count x86_EXCEPTION_STATE_COUNT\n";
 9806           outs() << "      count " << count
 9821           outs() << "\t    esh.flavor x86_EXCEPTION_STATE64\n";
 9823             outs() << "\t    esh.count x86_EXCEPTION_STATE64_COUNT\n";
 9825             outs() << "\t    esh.count " << es.esh.count
 9829           outs() << "\t    esh.flavor " << es.esh.flavor << "  esh.count "
 9833         outs() << "     flavor x86_EXCEPTION_STATE64\n";
 9835           outs() << "      count x86_EXCEPTION_STATE64_COUNT\n";
 9837           outs() << "      count " << count
 9853         outs() << "     flavor " << flavor << " (unknown)\n";
 9854         outs() << "      count " << count << "\n";
 9855         outs() << "      state (unknown)\n";
 9880         outs() << "     flavor ARM_THREAD_STATE\n";
 9882           outs() << "      count ARM_THREAD_STATE_COUNT\n";
 9884           outs() << "      count " << count
 9900         outs() << "     flavor " << flavor << " (unknown)\n";
 9901         outs() << "      count " << count << "\n";
 9902         outs() << "      state (unknown)\n";
 9928         outs() << "     flavor ARM_THREAD_STATE64\n";
 9930           outs() << "      count ARM_THREAD_STATE64_COUNT\n";
 9932           outs() << "      count " << count
 9948         outs() << "     flavor " << flavor << " (unknown)\n";
 9949         outs() << "      count " << count << "\n";
 9950         outs() << "      state (unknown)\n";
 9974       outs() << "     flavor " << flavor << "\n";
 9975       outs() << "      count " << count << "\n";
 9976       outs() << "      state (Unknown cputype/cpusubtype)\n";
 9984     outs() << "          cmd LC_ID_DYLIB\n";
 9986     outs() << "          cmd LC_LOAD_DYLIB\n";
 9988     outs() << "          cmd LC_LOAD_WEAK_DYLIB\n";
 9990     outs() << "          cmd LC_REEXPORT_DYLIB\n";
 9992     outs() << "          cmd LC_LAZY_LOAD_DYLIB\n";
 9994     outs() << "          cmd LC_LOAD_UPWARD_DYLIB\n";
 9996     outs() << "          cmd " << dl.cmd << " (unknown)\n";
 9997   outs() << "      cmdsize " << dl.cmdsize;
 9999     outs() << " Incorrect size\n";
10001     outs() << "\n";
10004     outs() << "         name " << P << " (offset " << dl.dylib.name << ")\n";
10006     outs() << "         name ?(bad offset " << dl.dylib.name << ")\n";
10008   outs() << "   time stamp " << dl.dylib.timestamp << " ";
10010   outs() << ctime(&t);
10011   outs() << "      current version ";
10013     outs() << "n/a\n";
10015     outs() << ((dl.dylib.current_version >> 16) & 0xffff) << "."
10018   outs() << "compatibility version ";
10020     outs() << "n/a\n";
10022     outs() << ((dl.dylib.compatibility_version >> 16) & 0xffff) << "."
10030     outs() << "      cmd LC_CODE_SIGNATURE\n";
10032     outs() << "      cmd LC_SEGMENT_SPLIT_INFO\n";
10034     outs() << "      cmd LC_FUNCTION_STARTS\n";
10036     outs() << "      cmd LC_DATA_IN_CODE\n";
10038     outs() << "      cmd LC_DYLIB_CODE_SIGN_DRS\n";
10040     outs() << "      cmd LC_LINKER_OPTIMIZATION_HINT\n";
10042     outs() << "      cmd " << ld.cmd << " (?)\n";
10043   outs() << "  cmdsize " << ld.cmdsize;
10045     outs() << " Incorrect size\n";
10047     outs() << "\n";
10048   outs() << "  dataoff " << ld.dataoff;
10050     outs() << " (past end of file)\n";
10052     outs() << "\n";
10053   outs() << " datasize " << ld.datasize;
10057     outs() << " (past end of file)\n";
10059     outs() << "\n";
10067     outs() << "Load command " << Index++ << "\n";
10189       outs() << "      cmd ?(" << format("0x%08" PRIx32, Command.C.cmd)
10191       outs() << "  cmdsize " << Command.C.cmdsize << "\n";
10267       outs() << "[re-export] ";
10269       outs() << format("0x%08llX  ",
10271     outs() << Entry.name();
10274       outs() << " [";
10276         outs() << "weak_def";
10281           outs() << ", ";
10282         outs() << "per-thread";
10287           outs() << ", ";
10288         outs() << "absolute";
10293           outs() << ", ";
10294         outs() << format("resolver=0x%08llX", Entry.other());
10297       outs() << "]";
10304         outs() << " (from " << DylibName << ")";
10306         outs() << " (" << Entry.otherName() << " from " << DylibName << ")";
10308     outs() << "\n";
10319   outs() << "segment  section            address     type\n";
10327     outs() << format("%-8s %-18s 0x%08" PRIX64 "  %s\n",
10362   outs() << "segment  section            address    type       "
10375     outs() << left_justify(SegmentName, 8) << " "
10392   outs() << "segment  section            address     "
10402     outs() << left_justify(SegmentName, 8) << " "
10417   outs() << "segment  section            address     "
10423       outs() << "                                        strong              "
10433     outs() << left_justify(SegmentName, 8) << " "
10467   outs() << "Lazy bind table:\n";
10477   outs() << "Weak bind table:\n";
10487   outs() << "Exports trie:\n";
10497   outs() << "Rebase table:\n";
10507   outs() << "Bind table:\n";
tools/llvm-objdump/WasmDump.cpp
   23   outs() << "Program Header:\n";
   24   outs() << "Version: 0x";
   25   outs().write_hex(File->getHeader().Version);
   26   outs() << "\n";
tools/llvm-objdump/llvm-objdump.cpp
  410   outs().flush();
  681   outs() << format(Fmt.data(), Address) << Name << "\t" << Val << "\n";
 1053     outs() << format("%8" PRIx64 ":", SectionAddr + Index);
 1054     outs() << "\t";
 1056       dumpBytes(Bytes.slice(Index, 4), outs());
 1057       outs() << "\t.word\t"
 1062       dumpBytes(Bytes.slice(Index, 2), outs());
 1063       outs() << "\t\t.short\t"
 1068       dumpBytes(Bytes.slice(Index, 1), outs());
 1069       outs() << "\t\t.byte\t" << format_hex(Bytes[0], 4);
 1072     outs() << "\n";
 1088       outs() << format("%8" PRIx64 ":", SectionAddr + Index);
 1090     outs() << format(" %02x", Byte);
 1105       outs() << std::string(IndentOffset, ' ') << "         ";
 1106       outs() << reinterpret_cast<char *>(AsciiData);
 1107       outs() << '\n';
 1306         outs() << "\nDisassembly of section ";
 1308           outs() << SegmentName << ",";
 1309         outs() << SectionName << ":\n";
 1329       outs() << '\n';
 1331         outs() << format(Is64Bits ? "%016" PRIx64 " " : "%08" PRIx64 " ",
 1334       outs() << SymbolName << ":\n";
 1339         outs() << "...\n";
 1396             outs() << "\t\t..." << '\n';
 1424                       outs(), "", *STI, &SP, Obj->getFileName(), &Rels);
 1425         outs() << CommentStream.str();
 1476               outs() << " <" << TargetName;
 1479                 outs() << "+0x" << Twine::utohexstr(Disp);
 1480               outs() << '>';
 1484         outs() << "\n";
 1635     outs() << "RELOCATION RECORDS FOR [" << SecName << "]:\n";
 1648         outs() << format(Fmt.data(), Address) << " " << RelocName << " "
 1652     outs() << "\n";
 1671   outs() << "DYNAMIC RELOCATION RECORDS\n";
 1681       outs() << format(Fmt.data(), Address) << " " << RelocName << " "
 1713     outs() << "Sections:\n"
 1719     outs() << "Sections:\n"
 1740       outs() << format("%3" PRIu64 " %-*s %08" PRIx64 " ", Idx, NameWidth,
 1746       outs() << format("%3" PRIu64 " %-*s %08" PRIx64 " ", Idx, NameWidth,
 1750   outs() << "\n";
 1761     outs() << "Contents of section " << Name << ":\n";
 1763       outs() << format("<skipping contents of bss section at [%04" PRIx64
 1773       outs() << format(" %04" PRIx64 " ", BaseAddr + Addr);
 1777           outs() << ' ';
 1779           outs() << hexdigit((Contents[Addr + I] >> 4) & 0xF, true)
 1782           outs() << "  ";
 1785       outs() << "  ";
 1788           outs() << Contents[Addr + I];
 1790           outs() << ".";
 1792       outs() << "\n";
 1799   outs() << "SYMBOL TABLE:\n";
 1852     outs() << format(Fmt, Address) << " "
 1862       outs() << "*ABS*";
 1864       outs() << "*COM*";
 1866       outs() << "*UND*";
 1872         outs() << SegmentName << ",";
 1876       outs() << SectionName;
 1882       outs() << format("\t%08" PRIx64, Val);
 1891         outs() << " .internal";
 1894         outs() << " .hidden";
 1897         outs() << " .protected";
 1900         outs() << format(" 0x%02x", Other);
 1904       outs() << " .hidden";
 1908       outs() << ' ' << demangle(Name) << '\n';
 1910       outs() << ' ' << Name << '\n';
 1915   outs() << "Unwind info:\n\n";
 1931   if (outs().is_displayed()) {
 1963   outs().write(ClangASTContents.data(), ClangASTContents.size());
 1995   outs() << "FaultMap table:\n";
 1998     outs() << "<not found>\n";
 2007   outs() << FMP;
 2035   outs() << "architecture: " << Triple::getArchTypeName(AT) << "\n";
 2039   outs() << "start address: "
 2051   outs() << ((Mode & sys::fs::owner_read) ? "r" : "-");
 2052   outs() << ((Mode & sys::fs::owner_write) ? "w" : "-");
 2053   outs() << ((Mode & sys::fs::owner_exe) ? "x" : "-");
 2054   outs() << ((Mode & sys::fs::group_read) ? "r" : "-");
 2055   outs() << ((Mode & sys::fs::group_write) ? "w" : "-");
 2056   outs() << ((Mode & sys::fs::group_exe) ? "x" : "-");
 2057   outs() << ((Mode & sys::fs::others_read) ? "r" : "-");
 2058   outs() << ((Mode & sys::fs::others_write) ? "w" : "-");
 2059   outs() << ((Mode & sys::fs::others_exe) ? "x" : "-");
 2061   outs() << " ";
 2063   outs() << format("%d/%d %6" PRId64 " ", unwrapOrError(C.getUID(), Filename),
 2070     outs() << "(date: \"" << RawLastModified
 2077     outs() << format("%.24s ", ctime(&t));
 2088   outs() << Name << "\n";
 2132     outs() << '\n';
 2134       outs() << A->getFileName() << "(" << O->getFileName() << ")";
 2136       outs() << O->getFileName();
 2137     outs() << ":\tfile format " << O->getFileFormatName() << "\n\n";
 2160     DICtx->dump(outs(), DumpOpts);
 2198     outs() << '\n'
tools/llvm-pdbutil/BytesOutputStyle.cpp
   86     : File(File), P(2, false, outs()) {}
tools/llvm-pdbutil/DumpOutputStyle.cpp
   64     : File(File), P(2, false, outs()) {
tools/llvm-pdbutil/ExplainOutputStyle.cpp
   32     : File(File), FileOffset(FileOffset), P(2, false, outs()) {}
tools/llvm-pdbutil/YAMLOutputStyle.cpp
   41     : File(File), Out(outs()), Obj(File.getAllocator()) {
  369   outs().flush();
tools/llvm-pdbutil/llvm-pdbutil.cpp
 1000     outs() << "  {";
 1001     Child->defaultDump(outs(), 4, Ids, Recurse);
 1002     outs() << "\n  }\n";
 1045       outs() << "{";
 1046       Child->defaultDump(outs(), 2, Ids, Recurse);
 1049       outs() << "\n}\n";
 1064   auto &Stream = outs();
 1100     outs() << "HasCTypes ";
 1102     outs() << "HasPrivateSymbols ";
 1178     llvm::outs().flush();
 1290   outs().flush();
 1374       outs() << "Dumping contents of stream index " << Index << " to file "
 1382     outs() << "Dumping contents of stream '" << opts::exportstream::Stream
 1569   outs().flush();
tools/llvm-profdata/llvm-profdata.cpp
  676       outs() << WF.Weight << "," << WF.Filename << "\n";
tools/llvm-rc/llvm-rc.cpp
   96     T.PrintHelp(outs(), "rc [options] file...", "Resource Converter", false);
  131       outs() << TokenNames[static_cast<int>(Token.kind())] << ": "
  134         outs() << "; int value = " << Token.intValue();
  136       outs() << "\n";
  197       Resource->log(outs());
tools/llvm-reduce/deltas/ReduceArguments.cpp
  106   outs() << "----------------------------\n";
  107   outs() << "Param Index Reference:\n";
  111       outs() << "  " << F.getName() << "\n";
  113         outs() << "\t" << ++ArgsCount << ": " << A.getName() << "\n";
  115       outs() << "----------------------------\n";
  122   outs() << "*** Reducing Arguments...\n";
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
  129   outs() << "----------------------------\n";
  134         outs() << "\t" << ++BBCount << ": " << BB.getName() << "\n";
  136         outs() << "\t" << ++BBCount << ": Unnamed\n";
  143   outs() << "*** Reducing Basic Blocks...\n";
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   60   outs() << "----------------------------\n";
   61   outs() << "GlobalVariable Index Reference:\n";
   65       outs() << "\t" << ++GVCount << ": " << GV.getName() << "\n";
   66   outs() << "----------------------------\n";
   71   outs() << "*** Reducing GVs...\n";
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   51   outs() << "----------------------------\n";
   56   outs() << "Number of instructions: " << InstCount << "\n";
   62   outs() << "*** Reducing Insructions...\n";
tools/llvm-reduce/deltas/ReduceMetadata.cpp
  134   outs() << "*** Reducing Metadata...\n";
  137   outs() << "----------------------------\n";
tools/llvm-reduce/llvm-reduce.cpp
   95       Tester.getProgram()->print(outs(), nullptr);
tools/llvm-rtdyld/llvm-rtdyld.cpp
  290     outs() << "allocateCodeSection(Size = " << Size << ", Alignment = "
  318     outs() << "allocateDataSection(Size = " << Size << ", Alignment = "
  467         outs() << "Function: " << *Name << ", Size = " << Size
  474           outs() << "  Line info @ " << D.first - Addr << ": "
tools/llvm-size/llvm-size.cpp
  225       outs() << "Segment " << Seg.segname << ": "
  228         outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff "
  230       outs() << "\n";
  236           outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", "
  239           outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": ";
  240         outs() << format(fmt.str().c_str(), Sec.size);
  242           outs() << " (addr 0x" << format("%" PRIx64, Sec.addr) << " offset "
  244         outs() << "\n";
  248         outs() << "\ttotal " << format(fmt.str().c_str(), sec_total) << "\n";
  252       outs() << "Segment " << Seg.segname << ": "
  255         outs() << " (vmaddr 0x" << format("%" PRIx32, Seg.vmaddr) << " fileoff "
  257       outs() << "\n";
  263           outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", "
  266           outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": ";
  268         outs() << format(fmt.str().c_str(), Sec_size);
  270           outs() << " (addr 0x" << format("%" PRIx32, Sec.addr) << " offset "
  272         outs() << "\n";
  276         outs() << "\ttotal " << format(fmt.str().c_str(), sec_total) << "\n";
  279   outs() << "total " << format(fmt.str().c_str(), total) << "\n";
  349     outs() << "__TEXT\t__DATA\t__OBJC\tothers\tdec\thex\n";
  352   outs() << total_text << "\t" << total_data << "\t" << total_objc << "\t"
  411     outs() << format(fmt.str().c_str(), static_cast<const char *>("section"),
  434       outs() << format(fmt.str().c_str(), name_or_err->str().c_str(), size, addr);
  440       outs() << format(fmt.str().c_str(), std::string("*COM*").c_str(),
  448     outs() << format(fmt.str().c_str(), static_cast<const char *>("Total"),
  484       outs() << "   text\t"
  499     outs() << format(fmt.str().c_str(), total_text, total_data, total_bss);
  503     outs() << format(fmt.str().c_str(), total, total);
  564           outs() << o->getFileName() << "   (ex " << a->getFileName() << "):\n";
  566           outs() << a->getFileName() << "(" << o->getFileName() << "):\n";
  570             outs() << a->getFileName() << "(" << o->getFileName() << ")\n";
  572             outs() << o->getFileName() << " (ex " << a->getFileName() << ")\n";
  596                   outs() << o->getFileName() << "  :\n";
  599                     outs() << o->getFileName() << " (for architecture "
  605                     outs() << o->getFileName() << " (for architecture "
  607                   outs() << "\n";
  634                     outs() << o->getFileName() << "   (ex " << UA->getFileName()
  637                     outs() << UA->getFileName() << "(" << o->getFileName()
  644                       outs() << UA->getFileName() << "(" << o->getFileName()
  647                         outs() << " (for architecture " << I->getArchFlagName()
  649                       outs() << "\n";
  651                       outs() << o->getFileName() << " (ex " << UA->getFileName()
  687                 outs() << o->getFileName() << "  :\n";
  690                   outs() << o->getFileName() << " (for architecture "
  696                   outs() << o->getFileName() << " (for architecture "
  698                 outs() << "\n";
  721                   outs() << o->getFileName() << "   (ex " << UA->getFileName()
  724                   outs() << UA->getFileName() << "(" << o->getFileName() << ")"
  730                     outs() << UA->getFileName() << "(" << o->getFileName()
  733                     outs() << o->getFileName() << " (ex " << UA->getFileName()
  762             outs() << o->getFileName() << "  :\n";
  765               outs() << o->getFileName() << " (for architecture "
  767             outs() << "\n";
  772               outs() << o->getFileName() << " (for architecture "
  774             outs() << "\n";
  798               outs() << o->getFileName() << "   (ex " << UA->getFileName()
  801               outs() << UA->getFileName() << "(" << o->getFileName() << ")"
  806                 outs() << UA->getFileName() << "(" << o->getFileName() << ")"
  810                 outs() << o->getFileName() << " (ex " << UA->getFileName()
  830       outs() << o->getFileName() << "  :\n";
  832       outs() << o->getFileName() << ":\n";
  836         outs() << o->getFileName();
  837       outs() << "\n";
  844     outs() << "\n";
  854   outs() << format(fmt.str().c_str(), TotalObjectText, TotalObjectData,
  859   outs() << format(fmt.str().c_str(), TotalObjectTotal, TotalObjectTotal)
  879         outs() << ToolName << ": for the -arch option: Unknown architecture "
tools/llvm-strings/llvm-strings.cpp
  115       strings(llvm::outs(), File == "-" ? "{standard input}" : File,
tools/llvm-symbolizer/llvm-symbolizer.cpp
  225     outs() << InputString;
  230     outs() << "0x";
  231     outs().write_hex(Offset);
  233     outs() << Delimiter;
  247         outs() << "??\n";
  269     outs() << "\n";
  313   DIPrinter Printer(outs(), ClPrintFunctions != FunctionNameKind::None,
  323       outs().flush();
tools/llvm-undname/llvm-undname.cpp
   68     outs() << ResultBuf << "\n";
   69     outs().flush();
  111         outs() << Line << "\n";
  112         outs().flush();
  116       outs() << "\n";
  120       outs() << S << "\n";
  121       outs().flush();
  124       outs() << "\n";
tools/llvm-xray/xray-fdr-dump.cpp
   63   RecordPrinter RP(outs(), "\n");
   76   BlockPrinter BP(outs(), RP);
  117   outs().flush();
tools/llvm-xray/xray-stacks.cpp
  764             outs(), FuncIdHelper, StacksOutputFormat);
  768             outs(), FuncIdHelper, StacksOutputFormat);
  774         ST.printAllPerThread<AggregationType::TOTAL_TIME>(outs(), FuncIdHelper,
  779             outs(), FuncIdHelper, StacksOutputFormat);
  788     ST.printAggregatingThreads(outs(), FuncIdHelper);
  790     ST.printPerThread(outs(), FuncIdHelper);
  792     ST.printIgnoringThreads(outs(), FuncIdHelper);
tools/obj2yaml/obj2yaml.cpp
   22     return errorCodeToError(coff2yaml(outs(), cast<COFFObjectFile>(Obj)));
   25     return errorCodeToError(xcoff2yaml(outs(), cast<XCOFFObjectFile>(Obj)));
   28     return elf2yaml(outs(), Obj);
   31     return errorCodeToError(wasm2yaml(outs(), cast<WasmObjectFile>(Obj)));
   45     return errorCodeToError(macho2yaml(outs(), Binary));
   50     return minidump2yaml(outs(), *Minidump);
tools/polly/lib/Support/PollyPasses.def
   28 SCOP_PASS("print<polly-ast>", IslAstPrinterPass(outs()))
   29 SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(outs()))
tools/sancov/sancov.cpp
 1155     readAndPrintRawCoverage(ClInputFiles, outs());
 1160       printCovPoints(ObjFile, outs());
 1170     printCoveredFunctions(*Coverage, outs());
 1174     printNotCoveredFunctions(*Coverage, outs());
 1178     outs() << computeStats(*Coverage);
 1183     json::OStream W(outs(), 2);
tools/sanstats/sanstats.cpp
   91       llvm::outs() << format_hex(Addr - 1, 18) << ' ' << LineInfo->FileName
   95       logAllUnhandledErrors(LineInfo.takeError(), llvm::outs(), "<error> ");
  100       llvm::outs() << "cfi-vcall";
  103       llvm::outs() << "cfi-nvcall";
  106       llvm::outs() << "cfi-derived-cast";
  109       llvm::outs() << "cfi-unrelated-cast";
  112       llvm::outs() << "cfi-icall";
  115       llvm::outs() << "<unknown>";
  119     llvm::outs() << " " << CountFromData(Data, SizeofPtr) << '\n';
tools/verify-uselistorder/verify-uselistorder.cpp
  119     outs() << " - filename = " << Filename << "\n";
  377   outs() << "verify bitcode\n";
  379   outs() << "verify assembly\n";
  553   outs() << "*** verify-uselistorder ***\n";
  555   outs() << "reverse\n";
  560     outs() << "\n";
  563     outs() << "shuffle (" << I + 1 << " of " << E << ")\n";
  568     outs() << "reverse\n";
unittests/Support/CommandLineTest.cpp
 1140     outs().flush();  // flush any output from previous tests
 1151       outs().flush();
 1624   outs()<< Errs << "\n";
unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
   73         outs()
unittests/tools/llvm-cfi-verify/GraphBuilder.cpp
  133         outs()
unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
   39       outs() << "Skipping execution, host:" << sys::getProcessTriple()
utils/FileCheck/FileCheck.cpp
  520     DumpInputAnnotationHelp(outs());
utils/yaml-bench/YAMLBench.cpp
   90     outs() << indent(Indent);
   93     outs() << "&" << Anchor << " ";
   97     outs() << prettyTag(n) << " \"" << yaml::escape(Val) << "\"";
   99     outs() << prettyTag(n) << " \"" << yaml::escape(BN->getValue()) << "\"";
  101     outs() << prettyTag(n) << " [\n";
  106       outs() << ",\n";
  109     outs() << indent(Indent) << "]";
  111     outs() << prettyTag(n) << " {\n";
  115       outs() << indent(Indent) << "? ";
  117       outs() << "\n";
  118       outs() << indent(Indent) << ": ";
  120       outs() << ",\n";
  123     outs() << indent(Indent) << "}";
  125     outs() << "*" << an->getName();
  127     outs() << prettyTag(n) << " null";
  134     outs() << "%YAML 1.2\n"
  141     outs() << "\n...\n";
  210       yaml::dumpTokens(Buf.getBuffer(), outs());