Home
last modified time | relevance | path

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

12

/src/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.cpp271 std::string OutputFilename = in DisplayGraph() local
284 args.push_back(OutputFilename); in DisplayGraph()
300 args.push_back(OutputFilename); in DisplayGraph()
304 args.push_back(OutputFilename); in DisplayGraph()
308 args.push_back(OutputFilename); in DisplayGraph()
314 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph()
322 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()
/src/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()
/src/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp204 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable
503 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex()
504 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex()
506 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex()
647 if (OutputFilename.empty()) in thinLink()
666 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in thinLink()
667 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink()
676 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes()
699 std::string OutputName = OutputFilename; in distributedIndexes()
714 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports()
[all …]
/src/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()
/src/contrib/llvm-project/llvm/tools/llvm-as/
H A Dllvm-as.cpp39 static cl::opt<std::string> OutputFilename("o", variable
75 if (OutputFilename.empty()) { in WriteOutputFile()
77 OutputFilename = "-"; in WriteOutputFile()
80 OutputFilename = (IFN.ends_with(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile()
81 OutputFilename += ".bc"; in WriteOutputFile()
87 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in WriteOutputFile()
/src/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 …]
/src/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 …]
/src/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),
163 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_TextWithCRLF); in main()
165 exitWithErrorCode(EC, OutputFilename); in main()
/src/contrib/llvm-project/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp45 static cl::opt<std::string> OutputFilename("o", variable
184 } else if (InputFilenames.size() > 1 && !OutputFilename.empty()) { in main()
203 if (OutputFilename == "-" && N > 1) in main()
225 std::string FinalFilename(OutputFilename); in main()
/src/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,
/src/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()
255 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); in llvm_dwp_main()
259 return error(Twine(OutputFilename) + ": " + EC.message(), Context); in llvm_dwp_main()
/src/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()
/src/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp194 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
208 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy()
214 PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates)) in executeObjcopy()
/src/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()
/src/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()
/src/contrib/llvm-project/llvm/tools/opt/
H A Doptdriver.cpp101 static cl::opt<std::string> OutputFilename("o", variable
305 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII()
608 if (!OutputFilename.empty()) in optMain()
613 if (OutputFilename.empty()) in optMain()
614 OutputFilename = "-"; in optMain()
619 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in optMain()
/src/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()
/src/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()
/src/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()
/src/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFObjcopy.cpp39 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileUtilities.h90 apply(StringRef OutputFilename, bool CopyDates = false,
/src/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp92 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable
101 cl::aliasopt(OutputFilename));
883 static void writeInstrProfile(StringRef OutputFilename, in writeInstrProfile() argument
887 raw_fd_ostream Output(OutputFilename.data(), EC, in writeInstrProfile()
891 exitWithErrorCode(EC, OutputFilename); in writeInstrProfile()
1004 writeInstrProfile(OutputFilename, OutputFormat, Contexts[0]->Writer); in mergeInstrProfile()
1364 if (OutputFilename == "-") in supplementInstrProfile()
1395 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile()
1590 SampleProfileWriter::create(OutputFilename, FormatMap[OutputFormat]); in mergeSampleProfile()
1592 exitWithErrorCode(EC, OutputFilename); in mergeSampleProfile()
[all …]

12