Searched refs:ErrMsg (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DBinaryStreamError.cpp24 ErrMsg = "Stream Error: ";
27 ErrMsg += "An unspecified error has occurred.";
30 ErrMsg += "The stream is too short to perform the requested operation.";
33 ErrMsg += "The buffer size is not a multiple of the array element size.";
36 ErrMsg += "The specified offset is invalid for the current stream.";
39 ErrMsg += "An I/O error occurred on the file system.";
44 ErrMsg += " ";
45 ErrMsg += Context;
49 void BinaryStreamError::log(raw_ostream &OS) const { OS << ErrMsg; } local
51 StringRef BinaryStreamError::getErrorMessage() const { return ErrMsg; }
[all...]
H A DProgram.cpp29 unsigned MemoryLimit, std::string *ErrMsg);
35 std::string *ErrMsg, bool *ExecutionFailed,
39 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) {
44 ErrMsg, ProcStat);
57 unsigned MemoryLimit, std::string *ErrMsg,
63 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg))
31 ExecuteAndWait(StringRef Program, ArrayRef<StringRef> Args, Optional<ArrayRef<StringRef>> Env, ArrayRef<Optional<StringRef>> Redirects, unsigned SecondsToWait, unsigned MemoryLimit, std::string *ErrMsg, bool *ExecutionFailed, Optional<ProcessStatistics> *ProcStat) argument
54 ExecuteNoWait(StringRef Program, ArrayRef<StringRef> Args, Optional<ArrayRef<StringRef>> Env, ArrayRef<Optional<StringRef>> Redirects, unsigned MemoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
H A DError.cpp142 std::string ErrMsg; local
144 raw_string_ostream ErrStream(ErrMsg);
147 report_fatal_error(ErrMsg);
160 char *ErrMsg = new char[Tmp.size() + 1]; local
161 memcpy(ErrMsg, Tmp.data(), Tmp.size());
162 ErrMsg[Tmp.size()] = '\0';
163 return ErrMsg;
166 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } argument
H A DGraphWriter.cpp120 std::string &ErrMsg) {
122 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) {
123 errs() << "Error: " << ErrMsg << "\n";
129 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg);
176 std::string ErrMsg; local
189 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
198 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
209 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
222 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
269 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg))
118 ExecGraphViewer(StringRef ExecPath, std::vector<StringRef> &args, StringRef Filename, bool wait, std::string &ErrMsg) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h52 /// This function builds an error message into \p ErrMsg using the \p prefix
60 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
61 if (!ErrMsg)
65 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
72 std::string ErrMsg; local
73 MakeErrMsg(&ErrMsg, Msg, errnum);
74 llvm::report_fatal_error(ErrMsg);
59 MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) argument
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) {
179 if (ErrMsg)
180 *ErrMsg = std::string("Executable \"") + Program.str() +
223 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
224 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileAction
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h58 void LLVMDisposeErrorMessage(char *ErrMsg);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DDynamicLibrary.h86 std::string *ErrMsg = nullptr) {
87 return !getPermanentLibrary(Filename, ErrMsg).isValid();
H A DProgram.h123 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
142 std::string *ErrMsg = nullptr,
204 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
H A DBinaryStreamError.h42 std::string ErrMsg; member in class:llvm::BinaryStreamError
H A DSignals.h32 bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = nullptr);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp309 std::string *ErrMsg, bool *ExecutionFailed) const {
331 if (ErrMsg)
332 *ErrMsg = EC.message();
353 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed);
373 std::string *ErrMsg, bool *ExecutionFailed) const {
378 return Command::Execute(Redirects, ErrMsg, ExecutionFailed);
438 std::string *ErrMsg, bool *ExecutionFailed) const {
439 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed);
443 // Clear ExecutionFailed and ErrMsg before falling back.
444 if (ErrMsg)
308 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
372 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
437 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
469 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp45 std::string ErrMsg; local
46 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg);
48 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode());
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/Windows/
H A DWindowsSupport.h68 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix);
72 std::string ErrMsg; local
73 MakeErrMsg(&ErrMsg, Msg);
74 llvm::report_fatal_error(ErrMsg);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc108 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
109 if (!ErrMsg)
118 *ErrMsg = prefix + ": " + buffer;
120 *ErrMsg = prefix + ": Unknown error";
121 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
128 std::string *ErrMsg) {
162 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
174 unsigned MemoryLimit, std::string *ErrMsg) {
176 if (ErrMsg)
177 *ErrMsg
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h46 RuntimeDyldError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} argument
49 const std::string &getErrorMessage() const { return ErrMsg; }
53 std::string ErrMsg; member in class:llvm::RuntimeDyldError
152 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
H A DExecutionEngine.h161 std::string ErrMsg; member in class:llvm::ExecutionEngine
286 bool hasError() const { return !ErrMsg.empty(); }
289 void clearErrorMessage() { ErrMsg.clear(); }
292 const std::string &getErrorMessage() const { return ErrMsg; }
/freebsd-13-stable/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp237 std::string ErrMsg = "could not open bitcode file for writing: "; local
238 ErrMsg += Path.str() + ": " + EC.message();
239 emitError(ErrMsg);
248 std::string ErrMsg = "could not write bitcode file: "; local
249 ErrMsg += Path.str() + ": " + Out.os().error().message();
250 emitError(ErrMsg);
353 std::string ErrMsg; local
354 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg);
356 emitError(ErrMsg);
717 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { argument
724 emitWarning(const std::string &ErrMsg) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp140 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) { argument
148 if (ErrMsg) {
149 *ErrMsg = ec.message();
158 if (ErrMsg) {
159 *ErrMsg = ec.message();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp48 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { argument
50 ErrMsg = "scale factor in address must be 1, 2, 4 or 8";
364 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { argument
366 ErrMsg = "cannot use more than one symbol in memory operand";
473 bool onPlus(StringRef &ErrMsg) { argument
492 ErrMsg = "BaseReg/IndexReg already set!";
504 bool onMinus(StringRef &ErrMsg) { argument
536 ErrMsg = "Scale can't be negative";
547 ErrMsg = "BaseReg/IndexReg already set!";
585 bool onRegister(unsigned Reg, StringRef &ErrMsg) { argument
621 onIdentifierExpr(const MCExpr *SymRef, StringRef SymRefName, const InlineAsmIdentifierInfo &IDInfo, bool ParsingMSInlineAsm, StringRef &ErrMsg) argument
653 onInteger(int64_t TmpInt, StringRef &ErrMsg) argument
829 onOffset(const MCExpr *Val, SMLoc OffsetLoc, StringRef ID, const InlineAsmIdentifierInfo &IDInfo, bool ParsingMSInlineAsm, StringRef &ErrMsg) argument
1080 CheckBaseRegAndIndexRegAndScale(unsigned BaseReg, unsigned IndexReg, unsigned Scale, bool Is64BitMode, StringRef &ErrMsg) argument
1626 StringRef ErrMsg; local
2145 StringRef ErrMsg; local
2481 StringRef ErrMsg; local
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Driver/
H A DJob.h172 std::string *ErrMsg, bool *ExecutionFailed) const;
220 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
239 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
258 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
/freebsd-13-stable/contrib/llvm-project/llvm/tools/bugpoint/
H A DOptimizerDriver.cpp239 std::string ErrMsg; local
241 MemoryLimit, &ErrMsg);
255 outs() << "Execute failed: " << ErrMsg << "\n";
257 outs() << "Crashed: " << ErrMsg << "\n";
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp259 std::string ErrMsg; local
260 raw_string_ostream ErrMsgStream(ErrMsg);
272 std::string ErrMsg; local
273 raw_string_ostream ErrMsgStream(ErrMsg);
424 std::string ErrMsg("No known address for symbol '");
425 ErrMsg += Symbol;
426 ErrMsg += "'";
428 ErrMsg += " (this appears to be an assembler local label - "
431 return std::make_pair(EvalResult(ErrMsg), "");
805 std::string ErrMsg; local
838 std::string ErrMsg; local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/lli/
H A DRemoteJITUtils.h124 bool finalizeMemory(std::string *ErrMsg = nullptr) override {
125 return MemMgr->finalizeMemory(ErrMsg);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOCodeGenerator.h212 void emitError(const std::string &ErrMsg);
213 void emitWarning(const std::string &ErrMsg);

Completed in 273 milliseconds

123