╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ zig_clang_cc1as_main.cpp ─────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
720 unsigned NumArgs = Asm.LLVMArgs.size(); 721 auto Args = std::make_unique<const char*[]>(NumArgs + 2); 722 Args[0] = "clang (LLVM option parsing)"; 723 for (unsigned i = 0; i != NumArgs; ++i) 724 Args[i + 1] = Asm.LLVMArgs[i].c_str(); 725 Args[NumArgs + 1] = nullptr; 726 llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args.get(), /*Overview=*/"", 727 /*Errs=*/nullptr, /*VFS=*/VFS.get()); 728 } 729 730 // Execute the invocation, unless there were parsing errors. 731 bool Failed = Diags.hasErrorOccurred() || ExecuteAssembler(Asm, Diags, VFS); 732 733 // If any timers were active but haven't been destroyed yet, print their 734 // results now. 735 TimerGroup::printAll(errs()); 736 TimerGroup::clearAll(); 737 738 return !!Failed; 739 } 740