Home
last modified time | relevance | path

Searched refs:ErrMsg (Results 1 – 25 of 77) sorted by relevance

1234

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DBinaryStreamError.cpp24 ErrMsg = "Stream Error: "; in BinaryStreamError()
27 ErrMsg += "An unspecified error has occurred."; in BinaryStreamError()
30 ErrMsg += "The stream is too short to perform the requested operation."; in BinaryStreamError()
33 ErrMsg += "The buffer size is not a multiple of the array element size."; in BinaryStreamError()
36 ErrMsg += "The specified offset is invalid for the current stream."; in BinaryStreamError()
39 ErrMsg += "An I/O error occurred on the file system."; in BinaryStreamError()
44 ErrMsg += " "; in BinaryStreamError()
45 ErrMsg += Context; in BinaryStreamError()
49 void BinaryStreamError::log(raw_ostream &OS) const { OS << ErrMsg; } in log()
51 StringRef BinaryStreamError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
H A DError.cpp142 std::string ErrMsg; in report_fatal_error() local
144 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
147 report_fatal_error(ErrMsg); in report_fatal_error()
160 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
161 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
162 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
163 return ErrMsg; in LLVMGetErrorMessage()
166 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
172 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
173 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
H A DGraphWriter.cpp120 std::string &ErrMsg) { in ExecGraphViewer() argument
122 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
123 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
129 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer()
176 std::string ErrMsg; in DisplayGraph() local
189 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
198 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
209 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
222 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
269 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
[all …]
H A DProgram.cpp29 unsigned MemoryLimit, std::string *ErrMsg,
36 std::string *ErrMsg, bool *ExecutionFailed, in ExecuteAndWait() argument
41 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteAndWait()
47 ErrMsg, ProcStat); in ExecuteAndWait()
60 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
66 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/Unix/
H A DUnix.h60 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
61 if (!ErrMsg)
65 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
72 std::string ErrMsg; in ReportErrnumFatal() local
73 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
74 llvm::report_fatal_error(ErrMsg); in ReportErrnumFatal()
H A DProgram.inc96 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) {
109 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
116 MakeErrMsg(ErrMsg, "Cannot dup2");
125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
139 return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
177 unsigned MemoryLimit, std::string *ErrMsg,
180 if (ErrMsg)
181 *ErrMsg = std::string("Executable \"") + Program.str() +
227 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
228 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/Windows/
H A DProgram.inc109 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
110 if (!ErrMsg)
119 *ErrMsg = prefix + ": " + buffer;
121 *ErrMsg = prefix + ": Unknown error";
122 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
129 std::string *ErrMsg) {
163 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
175 unsigned MemoryLimit, std::string *ErrMsg,
178 if (ErrMsg)
179 *ErrMsg = "program not executable";
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp222 std::string ErrMsg = "could not open bitcode file for writing: "; in writeMergedModules() local
223 ErrMsg += Path.str() + ": " + EC.message(); in writeMergedModules()
224 emitError(ErrMsg); in writeMergedModules()
233 std::string ErrMsg = "could not write bitcode file: "; in writeMergedModules() local
234 ErrMsg += Path.str() + ": " + Out.os().error().message(); in writeMergedModules()
235 emitError(ErrMsg); in writeMergedModules()
328 std::string ErrMsg; in determineTarget() local
329 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
331 emitError(ErrMsg); in determineTarget()
680 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h46 RuntimeDyldError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in RuntimeDyldError() argument
49 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage()
53 std::string ErrMsg;
156 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/llvm/
H A DSupportBindings.cpp18 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg) { in LLVMLoadLibraryPermanently2() argument
21 *ErrMsg = static_cast<char *>(malloc(ErrMsgStr.size() + 1)); in LLVMLoadLibraryPermanently2()
22 memcpy(static_cast<void *>(*ErrMsg), in LLVMLoadLibraryPermanently2()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp49 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument
51 ErrMsg = "scale factor in address must be 1, 2, 4 or 8"; in checkScale()
438 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { in setSymRef() argument
440 ErrMsg = "cannot use more than one symbol in memory operand"; in setSymRef()
640 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
659 ErrMsg = "BaseReg/IndexReg already set!"; in onPlus()
671 bool onMinus(StringRef &ErrMsg) { in onMinus() argument
709 ErrMsg = "Scale can't be negative"; in onMinus()
720 ErrMsg = "BaseReg/IndexReg already set!"; in onMinus()
764 bool onRegister(unsigned Reg, StringRef &ErrMsg) { in onRegister() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/
H A DTestRunner.cpp28 std::string ErrMsg; in run() local
31 /*SecondsToWait=*/0, /*MemoryLimit=*/0, &ErrMsg); in run()
35 ErrMsg, in run()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/not/
H A Dnot.cpp60 std::string ErrMsg; in main() local
61 int Result = sys::ExecuteAndWait(*Program, Argv, None, {}, 0, 0, &ErrMsg); in main()
71 WithColor::error() << ErrMsg << "\n"; in main()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/
H A DJob.cpp312 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
334 if (ErrMsg) in Execute()
335 *ErrMsg = EC.message(); in Execute()
356 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
377 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
382 return Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
432 std::string *ErrMsg, in Execute() argument
434 int Status = Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp259 std::string ErrMsg; in evalDecodeOperand() local
260 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
272 std::string ErrMsg; in evalDecodeOperand() local
273 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
426 std::string ErrMsg("No known address for symbol '"); in evalIdentifierExpr() local
427 ErrMsg += Symbol; in evalIdentifierExpr()
428 ErrMsg += "'"; in evalIdentifierExpr()
430 ErrMsg += " (this appears to be an assembler local label - " in evalIdentifierExpr()
433 return std::make_pair(EvalResult(ErrMsg), ""); in evalIdentifierExpr()
807 std::string ErrMsg; in getSectionAddr() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DRegisterEHFrames.cpp178 auto ErrMsg = toString(std::move(Err)); in llvm_orc_registerEHFrameSectionWrapper() local
179 return WrapperFunctionResult::from(ErrMsg).release(); in llvm_orc_registerEHFrameSectionWrapper()
204 auto ErrMsg = toString(std::move(Err)); in llvm_orc_deregisterEHFrameSectionWrapper() local
205 return WrapperFunctionResult::from(ErrMsg).release(); in llvm_orc_deregisterEHFrameSectionWrapper()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/Windows/
H A DWindowsSupport.h68 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
72 std::string ErrMsg; in ReportLastErrorFatal() local
73 MakeErrMsg(&ErrMsg, Msg); in ReportLastErrorFatal()
74 llvm::report_fatal_error(ErrMsg); in ReportLastErrorFatal()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp149 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) { in finalizeMemory() argument
157 if (ErrMsg) { in finalizeMemory()
158 *ErrMsg = ec.message(); in finalizeMemory()
166 if (ErrMsg) { in finalizeMemory()
167 *ErrMsg = ec.message(); in finalizeMemory()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
H A DOrcV2CBindingsBasicUsage.c19 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() local
20 fprintf(stderr, "Error: %s\n", ErrMsg); in handleError()
21 LLVMDisposeErrorMessage(ErrMsg); in handleError()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DProgram.h131 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
152 std::string *ErrMsg = nullptr,
215 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dobj2yaml.cpp69 std::string ErrMsg; in reportError() local
70 raw_string_ostream OS(ErrMsg); in reportError()
73 errs() << "Error reading file: " << Input << ": " << ErrMsg; in reportError()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
H A DOrcV2CBindingsRemovableCode.c19 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() local
20 fprintf(stderr, "Error: %s\n", ErrMsg); in handleError()
21 LLVMDisposeErrorMessage(ErrMsg); in handleError()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/
H A DOrcV2CBindingsAddObjectFile.c20 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() local
21 fprintf(stderr, "Error: %s\n", ErrMsg); in handleError()
22 LLVMDisposeErrorMessage(ErrMsg); in handleError()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp45 std::string ErrMsg; in createTargetMachine() local
46 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg); in createTargetMachine()
48 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in createTargetMachine()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DError.h58 void LLVMDisposeErrorMessage(char *ErrMsg);
68 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);

1234