Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/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.cpp169 std::string ErrMsg; in report_fatal_error() local
171 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
174 report_fatal_error(Twine(ErrMsg), GenCrashDiag); in report_fatal_error()
187 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
188 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
189 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
190 return ErrMsg; in LLVMGetErrorMessage()
193 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
199 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
200 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
H A DGraphWriter.cpp139 std::string &ErrMsg) { in ExecGraphViewer() argument
141 if (sys::ExecuteAndWait(ExecPath, args, std::nullopt, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
142 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
148 sys::ExecuteNoWait(ExecPath, args, std::nullopt, {}, 0, &ErrMsg); in ExecGraphViewer()
195 std::string ErrMsg; in DisplayGraph() local
208 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
217 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
228 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
241 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
288 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
67 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg, in ExecuteNoWait()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp46 if (!ErrMsg.empty()) in ~EPCGenericRTDyldMemoryManager()
47 errs() << "Destroying with existing errors:\n" << ErrMsg << "\n"; in ~EPCGenericRTDyldMemoryManager()
103 if (!ErrMsg.empty()) in reserveAllocationSpace()
107 ErrMsg = "Invalid code alignment in reserveAllocationSpace"; in reserveAllocationSpace()
111 ErrMsg = "Invalid ro-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
115 ErrMsg = "Invalid rw-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
135 ErrMsg = toString(std::move(Err)); in reserveAllocationSpace()
140 ErrMsg = toString(TargetAllocAddr.takeError()); in reserveAllocationSpace()
169 if (!ErrMsg.empty()) in registerEHFrames()
181 ErrMsg = "eh-frame does not lie inside unfinalized alloc"; in registerEHFrames()
[all …]
H A DJITTargetMachineBuilder.cpp42 std::string ErrMsg; in createTargetMachine() local
43 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg); in createTargetMachine()
45 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in createTargetMachine()
/freebsd/contrib/llvm-project/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.inc99 static bool RedirectIO(std::optional<StringRef> Path, int FD, std::string *ErrMsg) {
112 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " +
119 MakeErrMsg(ErrMsg, "Cannot dup2");
128 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
141 return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
179 unsigned MemoryLimit, std::string *ErrMsg,
182 if (ErrMsg)
183 *ErrMsg = std::string("Executable \"") + Program.str() +
230 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
231 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc111 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
112 if (!ErrMsg)
121 *ErrMsg = prefix + ": " + buffer;
123 *ErrMsg = prefix + ": Unknown error";
124 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
131 std::string *ErrMsg) {
165 MakeErrMsg(ErrMsg,
178 unsigned MemoryLimit, std::string *ErrMsg,
181 if (ErrMsg)
182 *ErrMsg = "program not executable";
[all …]
/freebsd/contrib/llvm-project/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()
399 std::string ErrMsg; in determineTarget() local
400 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg); in determineTarget()
402 emitError(ErrMsg); in determineTarget()
761 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp51 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument
53 ErrMsg = "scale factor in address must be 1, 2, 4 or 8"; in checkScale()
452 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { in setSymRef() argument
454 ErrMsg = "cannot use more than one symbol in memory operand"; in setSymRef()
499 bool regsUseUpError(StringRef &ErrMsg) { in regsUseUpError() argument
503 ErrMsg = "Don't use 2 or more regs for mem offset in PIC model!"; in regsUseUpError()
505 ErrMsg = "BaseReg/IndexReg already set!"; in regsUseUpError()
674 bool onPlus(StringRef &ErrMsg) { in onPlus() argument
693 return regsUseUpError(ErrMsg); in onPlus()
703 bool onMinus(StringRef &ErrMsg) { in onMinus() argument
[all …]
/freebsd/contrib/llvm-project/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;
169 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dsimple_packed_serialization.h537 std::string ErrMsg;
548 std::string ErrMsg; in serialize()
559 return make_error<StringError>(BSE.ErrMsg); in deserialize()
576 return make_error<StringError>(BSE.ErrMsg); in size()
588 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in serialize()
597 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in deserialize()
610 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg);
625 Size += SPSArgList<SPSString>::size(BSE.ErrMsg);
637 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
648 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg);
492 std::string ErrMsg; global() member
503 std::string ErrMsg; global() member
[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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Windows/
H A DWindowsSupport.h71 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
75 std::string ErrMsg; in ReportLastErrorFatal() local
76 MakeErrMsg(&ErrMsg, Msg); in ReportLastErrorFatal()
77 llvm::report_fatal_error(Twine(ErrMsg)); in ReportLastErrorFatal()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimplePackedSerialization.h604 std::string ErrMsg; member
615 std::string ErrMsg; member
626 return make_error<StringError>(BSE.ErrMsg, inconvertibleErrorCode()); in fromSPSSerializable()
643 return make_error<StringError>(BSE.ErrMsg, inconvertibleErrorCode()); in fromSPSSerializable()
655 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
664 if (!SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg)) in serialize()
677 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
692 Size += SPSArgList<SPSString>::size(BSE.ErrMsg); in size()
704 return SPSArgList<SPSString>::serialize(OB, BSE.ErrMsg); in serialize()
715 return SPSArgList<SPSString>::deserialize(IB, BSE.ErrMsg); in deserialize()
[all …]
H A DWrapperFunctionUtils.h457 if (const char *ErrMsg = ArgBuffer.getOutOfBandError()) in call() local
458 return make_error<StringError>(ErrMsg, inconvertibleErrorCode()); in call()
462 if (auto ErrMsg = ResultBuffer.getOutOfBandError()) in call() local
463 return make_error<StringError>(ErrMsg, inconvertibleErrorCode()); in call()
486 if (auto *ErrMsg = ArgBuffer.getOutOfBandError()) { in callAsync() local
488 make_error<StringError>(ErrMsg, inconvertibleErrorCode()), in callAsync()
498 if (auto *ErrMsg = R.getOutOfBandError()) { in callAsync() local
499 SDR(make_error<StringError>(ErrMsg, inconvertibleErrorCode()), in callAsync()
678 if (const char *ErrMsg = WFR.getOutOfBandError()) in runWithSPSRet() local
679 return make_error<StringError>(ErrMsg, inconvertibleErrorCode()); in runWithSPSRet()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h65 void LLVMDisposeErrorMessage(char *ErrMsg);
75 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DProgram.h132 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
153 unsigned MemoryLimit = 0, std::string *ErrMsg = nullptr,
222 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
H A DDynamicLibrary.h87 std::string *ErrMsg = nullptr) {
88 return !getPermanentLibrary(Filename, ErrMsg).isValid();
/freebsd/contrib/llvm-project/compiler-rt/include/orc_rt/
H A Dc_api.h136 orc_rt_CreateCWrapperFunctionResultFromOutOfBandError(const char *ErrMsg) { in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError() argument
139 char *Tmp = (char *)malloc(strlen(ErrMsg) + 1); in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
140 strcpy(Tmp, ErrMsg); in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dc_api_test.cpp182 constexpr const char *ErrMsg = "test error message"; in TEST() local
184 orc_rt_CreateCWrapperFunctionResultFromOutOfBandError(ErrMsg); in TEST()
196 EXPECT_NE(OOBErrMsg, ErrMsg); in TEST()
197 EXPECT_TRUE(strcmp(OOBErrMsg, ErrMsg) == 0); in TEST()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorDylibManager.cpp31 std::string ErrMsg; in open() local
33 auto DL = sys::DynamicLibrary::getPermanentLibrary(PathCStr, &ErrMsg); in open()
35 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode()); in open()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp314 std::string ErrMsg; in evalDecodeOperand() local
315 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
327 std::string ErrMsg; in evalDecodeOperand() local
328 raw_string_ostream ErrMsgStream(ErrMsg); in evalDecodeOperand()
496 std::string ErrMsg("No known address for symbol '"); in evalIdentifierExpr() local
497 ErrMsg += Symbol; in evalIdentifierExpr()
498 ErrMsg += "'"; in evalIdentifierExpr()
500 ErrMsg += " (this appears to be an assembler local label - " in evalIdentifierExpr()
503 return std::make_pair(EvalResult(ErrMsg), ""); in evalIdentifierExpr()
978 std::string ErrMsg; in getSectionAddr() local
[all …]

1234