Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/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.cpp147 std::string ErrMsg; in report_fatal_error() local
149 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
152 report_fatal_error(Twine(ErrMsg)); in report_fatal_error()
165 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
166 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
167 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
168 return ErrMsg; in LLVMGetErrorMessage()
171 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
177 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
178 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
H A DGraphWriter.cpp137 std::string &ErrMsg) { in ExecGraphViewer() argument
140 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
146 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer()
193 std::string ErrMsg; in DisplayGraph() local
206 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
215 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
226 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
239 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
286 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
319 ErrMsg.clear(); in DisplayGraph()
[all …]
H A DProgram.cpp28 unsigned MemoryLimit, std::string *ErrMsg,
35 std::string *ErrMsg, bool *ExecutionFailed, in ExecuteAndWait() argument
40 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteAndWait()
46 ErrMsg, ProcStat); in ExecuteAndWait()
59 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
65 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp46 if (!ErrMsg.empty()) in ~EPCGenericRTDyldMemoryManager()
103 if (!ErrMsg.empty()) in reserveAllocationSpace()
135 ErrMsg = toString(std::move(Err)); in reserveAllocationSpace()
169 if (!ErrMsg.empty()) in registerEHFrames()
210 if (ErrMsg && !this->ErrMsg.empty()) { in finalizeMemory()
211 *ErrMsg = std::move(this->ErrMsg); in finalizeMemory()
280 this->ErrMsg = toString(std::move(Err)); in finalizeMemory()
282 if (ErrMsg) in finalizeMemory()
283 *ErrMsg = this->ErrMsg; in finalizeMemory()
290 if (ErrMsg) in finalizeMemory()
[all …]
/llvm-project-15.0.7/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);
71 std::string ErrMsg; in ReportErrnumFatal() local
72 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
73 llvm::report_fatal_error(llvm::Twine(ErrMsg)); in ReportErrnumFatal()
H A DProgram.inc117 MakeErrMsg(ErrMsg, "Cannot dup2");
181 if (ErrMsg)
280 MakeErrMsg(ErrMsg, "Couldn't fork");
435 MakeErrMsg(ErrMsg, "Child timed out", 0);
471 if (ErrMsg)
472 *ErrMsg = llvm::sys::StrError(ENOENT);
477 if (ErrMsg)
478 *ErrMsg = "Program could not be executed";
483 if (ErrMsg) {
484 *ErrMsg = strsignal(WTERMSIG(status));
[all …]
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DProgram.inc112 if (!ErrMsg)
121 *ErrMsg = prefix + ": " + buffer;
123 *ErrMsg = prefix + ": Unknown error";
131 std::string *ErrMsg) {
180 if (ErrMsg)
181 *ErrMsg = "program not executable";
238 MakeErrMsg(ErrMsg, "can't redirect stdin");
244 MakeErrMsg(ErrMsg, "can't redirect stdout");
279 MakeErrMsg(ErrMsg,
430 if (ErrMsg)
[all …]
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp218 ErrMsg += Path.str() + ": " + EC.message(); in writeMergedModules()
219 emitError(ErrMsg); in writeMergedModules()
228 std::string ErrMsg = "could not write bitcode file: "; in writeMergedModules() local
229 ErrMsg += Path.str() + ": " + Out.os().error().message(); in writeMergedModules()
230 emitError(ErrMsg); in writeMergedModules()
322 std::string ErrMsg; in determineTarget() local
323 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
325 emitError(ErrMsg); in determineTarget()
686 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
690 Context.diagnose(LTODiagnosticInfo(ErrMsg)); in emitError()
[all …]
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsLazy/
H A DOrcV2CBindingsLazy.c20 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() local
21 fprintf(stderr, "Error: %s\n", ErrMsg); in handleError()
22 LLVMDisposeErrorMessage(ErrMsg); in handleError()
83 char *ErrMsg; in parseExampleModule() local
84 if (LLVMParseIRInContext(Ctx, MB, &M, &ErrMsg)) { in parseExampleModule()
85 return LLVMCreateStringError(ErrMsg); in parseExampleModule()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsVeryLazy/
H A DOrcV2CBindingsVeryLazy.c22 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() local
23 fprintf(stderr, "Error: %s\n", ErrMsg); in handleError()
24 LLVMDisposeErrorMessage(ErrMsg); in handleError()
90 char *ErrMsg; in parseExampleModule() local
91 if (LLVMParseIRInContext(Ctx, MB, &M, &ErrMsg)) { in parseExampleModule()
92 LLVMErrorRef Err = LLVMCreateStringError(ErrMsg); in parseExampleModule()
93 LLVMDisposeMessage(ErrMsg); in parseExampleModule()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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;
170 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp660 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
1377 return checkScale(Scale, ErrMsg); in CheckBaseRegAndIndexRegAndScale()
1827 StringRef ErrMsg; in ParseIntelNamedOperator() local
1873 StringRef ErrMsg; in ParseIntelExpression() local
2136 if (SM.onPlus(ErrMsg)) in ParseIntelExpression()
2140 if (SM.onMinus(ErrMsg)) in ParseIntelExpression()
2160 if (SM.onRBrac(ErrMsg)) { in ParseIntelExpression()
2585 StringRef ErrMsg; in parseIntelOperand() local
2627 return Error(Start, ErrMsg); in parseIntelOperand()
2970 StringRef ErrMsg; in ParseMemOperand() local
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Dsimple_packed_serialization.h450 std::string ErrMsg; member
461 std::string ErrMsg; member
472 return make_error<StringError>(BSE.ErrMsg); in fromSPSSerializable()
489 return make_error<StringError>(BSE.ErrMsg); in fromSPSSerializable()
501 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
510 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in serialize()
523 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
538 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
550 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
573 SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
[all …]
H A Dlog_error_to_stderr.cpp17 ORC_RT_INTERFACE void __orc_rt_log_error_to_stderr(const char *ErrMsg) { in __orc_rt_log_error_to_stderr() argument
18 fprintf(stderr, "orc runtime error: %s\n", ErrMsg); in __orc_rt_log_error_to_stderr()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/
H A DTestRunner.cpp35 std::string ErrMsg; in run() local
38 /*SecondsToWait=*/0, /*MemoryLimit=*/0, &ErrMsg); in run()
42 ErrMsg, in run()
/llvm-project-15.0.7/clang/lib/Driver/
H A DJob.cpp313 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
335 if (ErrMsg) in Execute()
336 *ErrMsg = EC.message(); in Execute()
357 ErrMsg, ExecutionFailed, &ProcStat); in Execute()
378 std::string *ErrMsg, bool *ExecutionFailed) const { in Execute() argument
383 return Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
435 std::string *ErrMsg, in Execute() argument
437 int Status = Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp280 std::string ErrMsg; in evalDecodeOperand() local
281 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
293 std::string ErrMsg; in evalDecodeOperand() local
294 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
448 ErrMsg += Symbol; in evalIdentifierExpr()
449 ErrMsg += "'"; in evalIdentifierExpr()
830 std::string ErrMsg; in getSectionAddr() local
832 raw_string_ostream ErrMsgStream(ErrMsg); in getSectionAddr()
836 return std::make_pair(0, std::move(ErrMsg)); in getSectionAddr()
863 std::string ErrMsg; in getStubOrGOTAddrFor() local
[all …]
/llvm-project-15.0.7/llvm/unittests/Object/
H A DELFObjectFileTest.cpp449 FailedWithMessage(ErrMsg)); in TEST()
453 FailedWithMessage(ErrMsg)); in TEST()
459 FailedWithMessage(ErrMsg)); in TEST()
465 FailedWithMessage(ErrMsg)); in TEST()
471 FailedWithMessage(ErrMsg)); in TEST()
477 FailedWithMessage(ErrMsg)); in TEST()
486 FailedWithMessage(ErrMsg)); in TEST()
514 auto DoCheck = [&](StringRef YamlString, const char *ErrMsg) { in TEST() argument
525 FailedWithMessage(ErrMsg)); in TEST()
692 const char *ErrMsg) { in TEST() argument
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimplePackedSerialization.h563 std::string ErrMsg; member
574 std::string ErrMsg; member
585 return make_error<StringError>(BSE.ErrMsg, inconvertibleErrorCode()); in fromSPSSerializable()
614 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
623 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in serialize()
636 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
651 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
663 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
674 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
686 SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
[all …]
/llvm-project-15.0.7/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(Twine(ErrMsg)); in ReportLastErrorFatal()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DError.h65 void LLVMDisposeErrorMessage(char *ErrMsg);
75 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);

12345