Home
last modified time | relevance | path

Searched refs:OutputFilename (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DFileUtilities.cpp285 StringRef OutputFilename, bool CopyDates, in apply() argument
296 if (OutputFilename == "-") in apply()
299 if (std::error_code EC = sys::fs::openFileForWrite(OutputFilename, FD, in apply()
301 return createFileError(OutputFilename, EC); in apply()
306 return createFileError(OutputFilename, EC); in apply()
310 return createFileError(OutputFilename, EC); in apply()
314 if (OutputFilename == InputFilename && OStat.getUser() == 0) in apply()
319 if (OutputFilename != InputFilename) in apply()
322 if (std::error_code EC = sys::fs::setPermissions(OutputFilename, Perm)) in apply()
326 return createFileError(OutputFilename, EC); in apply()
[all …]
H A DGraphWriter.cpp269 std::string OutputFilename = in DisplayGraph() local
282 args.push_back(OutputFilename); in DisplayGraph()
298 args.push_back(OutputFilename); in DisplayGraph()
302 args.push_back(OutputFilename); in DisplayGraph()
306 args.push_back(OutputFilename); in DisplayGraph()
312 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph()
320 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
H A DTimer.cpp97 const std::string &OutputFilename = getLibSupportInfoOutputFilename(); in CreateInfoOutputFile() local
98 if (OutputFilename.empty()) in CreateInfoOutputFile()
100 if (OutputFilename == "-") in CreateInfoOutputFile()
109 OutputFilename, EC, sys::fs::OF_Append | sys::fs::OF_TextWithCRLF); in CreateInfoOutputFile()
114 << OutputFilename << " for appending!\n"; in CreateInfoOutputFile()
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DInterfaceStubs.cpp36 SmallString<128> OutputFilename(Output.getFilename()); in ConstructJob() local
37 if (OutputFilename != "-") { in ConstructJob()
39 llvm::sys::path::replace_extension(OutputFilename, in ConstructJob()
42 OutputFilename += (WriteBin ? ".ifso" : ".ifs"); in ConstructJob()
45 CmdArgs.push_back(Args.MakeArgString(OutputFilename.c_str())); in ConstructJob()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp494 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex()
638 if (OutputFilename.empty()) in thinLink()
689 std::string OutputName = OutputFilename; in distributedIndexes()
719 std::string OutputName = OutputFilename; in emitImports()
749 std::string OutputName = OutputFilename; in promote()
782 std::string OutputName = OutputFilename; in import()
815 std::string OutputName = OutputFilename; in internalize()
840 std::string OutputName = OutputFilename; in optimize()
869 std::string OutputName = OutputFilename; in codegen()
886 if (!OutputFilename.empty()) in runAll()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DMain.cpp40 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable
81 if (OutputFilename == "-") in createDependencyFile()
89 DepOut.os() << OutputFilename << ":"; in createDependencyFile()
161 MemoryBuffer::getFile(OutputFilename, /*IsText=*/true)) in TableGenMain()
167 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_Text); in TableGenMain()
169 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-as/
H A Dllvm-as.cpp39 static cl::opt<std::string> OutputFilename("o", variable
73 if (OutputFilename.empty()) { in WriteOutputFile()
75 OutputFilename = "-"; in WriteOutputFile()
78 OutputFilename = (IFN.ends_with(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile()
79 OutputFilename += ".bc"; in WriteOutputFile()
85 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in WriteOutputFile()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp253 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateDebugInfo() local
255 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo()
260 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateDebugInfo()
278 Config.Common.OutputFilename = Opts.OutputFileName; in saveNonDebugInfo()
285 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveNonDebugInfo()
359 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateLinkedDebugInfo() local
361 Config.Common.OutputFilename = OutputFilename; in saveSeparateLinkedDebugInfo()
371 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateLinkedDebugInfo()
392 Config.Common.OutputFilename = Opts.OutputFileName; in saveSingleLinkedDebugInfo()
399 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSingleLinkedDebugInfo()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llc/
H A Dllc.cpp76 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable
262 if (OutputFilename.empty()) { in GetOutputStream()
264 OutputFilename = "-"; in GetOutputStream()
269 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream()
271 OutputFilename = std::string(IFN.drop_back(4)); in GetOutputStream()
273 OutputFilename = std::string(IFN); in GetOutputStream()
277 OutputFilename += ".s"; in GetOutputStream()
281 OutputFilename += ".obj"; in GetOutputStream()
283 OutputFilename += ".o"; in GetOutputStream()
286 OutputFilename = "-"; in GetOutputStream()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp41 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable
44 cl::alias OutputFilenameA("o", cl::aliasopt(OutputFilename),
160 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_TextWithCRLF); in main()
162 exitWithErrorCode(EC, OutputFilename); in main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp45 static cl::opt<std::string> OutputFilename("o", variable
176 } else if (InputFilenames.size() > 1 && !OutputFilename.empty()) { in main()
195 if (OutputFilename == "-" && N > 1) in main()
217 std::string FinalFilename(OutputFilename); in main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/bugpoint/
H A DOptimizerDriver.cpp132 std::string &OutputFilename, bool DeleteOutput, in runPasses() argument
144 OutputFilename = std::string(UniqueFilename); in runPasses()
213 Args.push_back(OutputFilename); in runPasses()
250 sys::fs::remove(OutputFilename); in runPasses()
H A DBugDriver.h142 std::string OutputFilename,
219 std::string &OutputFilename, bool DeleteOutput = false,
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-modextract/
H A Dllvm-modextract.cpp32 static cl::opt<std::string> OutputFilename("o", cl::Required, variable
67 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-dwp/
H A Dllvm-dwp.cpp72 static std::string OutputFilename; variable
143 OutputFilename = Args.getLastArgValue(OPT_outputFileName, ""); in llvm_dwp_main()
252 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); in llvm_dwp_main()
256 return error(Twine(OutputFilename) + ": " + EC.message(), Context); in llvm_dwp_main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp193 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
207 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
213 PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates)) in executeObjcopy()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-sim/
H A Dllvm-sim.cpp29 static cl::opt<std::string> OutputFilename("o", cl::desc("Output Filename"), variable
141 exportToFile(OutputFilename, SimilaritySections, LLVMInstNum); in main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-cov/
H A DTestingSupport.cpp29 cl::opt<std::string> OutputFilename( in convertForTestingMain() local
130 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) { in convertForTestingMain()
/freebsd-14.2/contrib/llvm-project/llvm/tools/opt/
H A Dopt.cpp99 OutputFilename("o", cl::desc("Override output filename"), variable
304 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII()
608 if (!OutputFilename.empty()) in main()
613 if (OutputFilename.empty()) in main()
614 OutputFilename = "-"; in main()
619 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in main()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkSizeDiff.cpp37 static cl::opt<std::string> OutputFilename("o", cl::init("-"), variable
365 if (OutputFilename == "") in getOutputStream()
366 OutputFilename = "-"; in getOutputStream()
368 auto Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in getOutputStream()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-debuginfo-analyzer/
H A Dllvm-debuginfo-analyzer.cpp107 ToolOutputFile OutputFile(OutputFilename, EC, sys::fs::OF_None); in main()
108 error(EC, "Unable to open output file %s", OutputFilename.c_str()); in main()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp223 "'" + Config.OutputFilename + "': not stripping symbol '" + in handleArgs()
309 "'" + Config.OutputFilename + in handleArgs()
335 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFObjcopy.cpp39 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileUtilities.h90 apply(StringRef OutputFilename, bool CopyDates = false,
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp101 cl::aliasopt(OutputFilename));
825 static void writeInstrProfile(StringRef OutputFilename, in writeInstrProfile() argument
829 raw_fd_ostream Output(OutputFilename.data(), EC, in writeInstrProfile()
833 exitWithErrorCode(EC, OutputFilename); in writeInstrProfile()
1306 if (OutputFilename.compare("-") == 0) in supplementInstrProfile()
1337 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile()
1532 exitWithErrorCode(EC, OutputFilename); in mergeSampleProfile()
2617 exitWithErrorCode(EC, OutputFilename); in overlap_main()
3180 if (Filename == OutputFilename) { in show_main()
3191 exitWithErrorCode(EC, OutputFilename); in show_main()
[all …]

12