Home
last modified time | relevance | path

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

12

/freebsd/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.cpp66 const std::string &OutputFilename = libSupportInfoOutputFilename(); in CreateInfoOutputFile() local
67 if (OutputFilename.empty()) in CreateInfoOutputFile()
69 if (OutputFilename == "-") in CreateInfoOutputFile()
78 OutputFilename, EC, sys::fs::OF_Append | sys::fs::OF_TextWithCRLF); in CreateInfoOutputFile()
83 << OutputFilename << " for appending!\n"; in CreateInfoOutputFile()
/freebsd/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/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp204 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable
557 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex()
558 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex()
560 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex()
701 if (OutputFilename.empty()) in thinLink()
720 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in thinLink()
721 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink()
730 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes()
753 std::string OutputName = OutputFilename; in distributedIndexes()
768 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DMain.cpp41 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable
91 if (OutputFilename == "-") in createDependencyFile()
99 DepOut.os() << OutputFilename << ":"; in createDependencyFile()
174 MemoryBuffer::getFile(OutputFilename, /*IsText=*/true)) in TableGenMain()
180 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_Text); in TableGenMain()
182 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
/freebsd/contrib/llvm-project/llvm/tools/llvm-as/
H A Dllvm-as.cpp38 static cl::opt<std::string> OutputFilename("o", variable
72 if (OutputFilename.empty()) { in WriteOutputFile()
74 OutputFilename = "-"; in WriteOutputFile()
77 OutputFilename = (IFN.ends_with(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile()
78 OutputFilename += ".bc"; in WriteOutputFile()
84 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in WriteOutputFile()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp255 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateDebugInfo() local
257 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo()
262 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateDebugInfo()
280 Config.Common.OutputFilename = Opts.OutputFileName; in saveNonDebugInfo()
287 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveNonDebugInfo()
361 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateLinkedDebugInfo() local
363 Config.Common.OutputFilename = OutputFilename; in saveSeparateLinkedDebugInfo()
373 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateLinkedDebugInfo()
394 Config.Common.OutputFilename = Opts.OutputFileName; in saveSingleLinkedDebugInfo()
401 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSingleLinkedDebugInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llc/
H A Dllc.cpp79 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable
266 if (OutputFilename.empty()) { in GetOutputStream()
268 OutputFilename = "-"; in GetOutputStream()
273 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream()
275 OutputFilename = std::string(IFN.drop_back(4)); in GetOutputStream()
277 OutputFilename = std::string(IFN); in GetOutputStream()
281 OutputFilename += ".s"; in GetOutputStream()
285 OutputFilename += ".obj"; in GetOutputStream()
287 OutputFilename += ".o"; in GetOutputStream()
290 OutputFilename = "-"; in GetOutputStream()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp41 static cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable
45 static cl::alias OutputFilenameA("o", cl::aliasopt(OutputFilename),
164 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_TextWithCRLF); in main()
166 exitWithErrorCode(EC, OutputFilename); in main()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp61 static cl::opt<std::string> OutputFilename("o", variable
188 } else if (InputFilenames.size() > 1 && !OutputFilename.empty()) { in main()
213 if (OutputFilename == "-" && N > 1) in main()
235 std::string FinalFilename(OutputFilename); in main()
/freebsd/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()
212 Args.push_back(OutputFilename); in runPasses()
249 sys::fs::remove(OutputFilename); in runPasses()
H A DBugDriver.h142 std::string OutputFilename,
219 std::string &OutputFilename, bool DeleteOutput = false,
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwp/
H A Dllvm-dwp.cpp74 static std::string OutputFilename; variable
145 OutputFilename = Args.getLastArgValue(OPT_outputFileName, ""); in llvm_dwp_main()
257 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); in llvm_dwp_main()
261 return error(Twine(OutputFilename) + ": " + EC.message(), Context); in llvm_dwp_main()
/freebsd/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/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp180 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
194 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
200 PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates)) in executeObjcopy()
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DTestingSupport.cpp29 cl::opt<std::string> OutputFilename( in convertForTestingMain()
130 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) {
27 cl::opt<std::string> OutputFilename( convertForTestingMain() local
/freebsd/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/contrib/llvm-project/llvm/tools/opt/
H A Doptdriver.cpp105 static cl::opt<std::string> OutputFilename("o", variable
306 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII()
602 if (!OutputFilename.empty()) in optMain()
607 if (OutputFilename.empty()) in optMain()
608 OutputFilename = "-"; in optMain()
613 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in optMain()
/freebsd/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/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/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFObjcopy.cpp38 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
/freebsd/contrib/llvm-project/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp52 static cl::opt<std::string> OutputFilename("o", cl::Required, variable
317 check(Conf.addSaveTemps(OutputFilename + ".", false, SaveTempsArgs), in run()
382 /*OnWrite=*/{}, ThinLTOEmitIndexes, ThinLTOEmitImports, OutputFilename, in run()
470 std::string Path = OutputFilename + "." + utostr(Task); in run()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp231 "'" + Config.OutputFilename + "': not stripping symbol '" + in handleArgs()
317 "'" + Config.OutputFilename + in handleArgs()
343 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileUtilities.h91 apply(StringRef OutputFilename, bool CopyDates = false,

12