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

123

/freebsd-11-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.cpp28 unsigned MemoryLimit, std::string *ErrMsg);
34 std::string *ErrMsg, bool *ExecutionFailed) {
37 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) {
41 PI, SecondsToWait, /*WaitUntilTerminates=*/SecondsToWait == 0, ErrMsg);
54 unsigned MemoryLimit, std::string *ErrMsg,
60 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg))
30 ExecuteAndWait(StringRef Program, ArrayRef<StringRef> Args, Optional<ArrayRef<StringRef>> Env, ArrayRef<Optional<StringRef>> Redirects, unsigned SecondsToWait, unsigned MemoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
51 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.cpp95 std::string &ErrMsg) {
97 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) {
98 errs() << "Error: " << ErrMsg << "\n";
104 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg);
151 std::string ErrMsg; local
164 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
173 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
184 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
197 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
244 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg))
93 ExecGraphViewer(StringRef ExecPath, std::vector<StringRef> &args, StringRef Filename, bool wait, std::string &ErrMsg) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DUnix.h56 /// This function builds an error message into \p ErrMsg using the \p prefix
64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
65 if (!ErrMsg)
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
76 std::string ErrMsg; local
77 MakeErrMsg(&ErrMsg, Msg, errnum);
78 llvm::report_fatal_error(ErrMsg);
63 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);
179 unsigned MemoryLimit, std::string *ErrMsg) {
181 if (ErrMsg)
182 *ErrMsg = std::string("Executable \"") + Program.str() +
225 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
226 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileAction
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DError.h58 void LLVMDisposeErrorMessage(char *ErrMsg);
/freebsd-11-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.h115 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
130 std::string *ErrMsg = nullptr,
192 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-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp44 std::string ErrMsg; local
45 auto *TheTarget = TargetRegistry::lookupTarget(TT.getTriple(), ErrMsg);
47 return make_error<StringError>(std::move(ErrMsg), inconvertibleErrorCode());
/freebsd-11-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 DSectionMemoryManager.h142 bool finalizeMemory(std::string *ErrMsg = nullptr) override;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp327 std::string *ErrMsg, bool *ExecutionFailed) const {
349 if (ErrMsg)
350 *ErrMsg = EC.message();
371 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed);
390 std::string *ErrMsg, bool *ExecutionFailed) const {
395 return Command::Execute(Redirects, ErrMsg, ExecutionFailed);
453 std::string *ErrMsg, bool *ExecutionFailed) const {
454 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed);
458 // Clear ExecutionFailed and ErrMsg before falling back.
459 if (ErrMsg)
326 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
389 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
452 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
482 Execute(ArrayRef<llvm::Optional<StringRef>> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const argument
[all...]
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/lib/Support/Windows/
H A DProgram.inc107 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
108 if (!ErrMsg)
117 *ErrMsg = prefix + ": " + buffer;
119 *ErrMsg = prefix + ": Unknown error";
120 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
127 std::string *ErrMsg) {
161 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
173 unsigned MemoryLimit, std::string *ErrMsg) {
175 if (ErrMsg)
176 *ErrMsg
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp234 std::string ErrMsg = "could not open bitcode file for writing: "; local
235 ErrMsg += Path.str() + ": " + EC.message();
236 emitError(ErrMsg);
245 std::string ErrMsg = "could not write bitcode file: "; local
246 ErrMsg += Path.str() + ": " + Out.os().error().message();
247 emitError(ErrMsg);
350 std::string ErrMsg; local
351 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg);
353 emitError(ErrMsg);
707 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { argument
714 emitWarning(const std::string &ErrMsg) argument
[all...]
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp42 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { argument
44 ErrMsg = "scale factor in address must be 1, 2, 4 or 8";
356 bool setSymRef(const MCExpr *Val, StringRef ID, StringRef &ErrMsg) { argument
358 ErrMsg = "cannot use more than one symbol in memory operand";
464 bool onPlus(StringRef &ErrMsg) { argument
483 ErrMsg = "BaseReg/IndexReg already set!";
495 bool onMinus(StringRef &ErrMsg) { argument
527 ErrMsg = "Scale can't be negative";
538 ErrMsg = "BaseReg/IndexReg already set!";
576 bool onRegister(unsigned Reg, StringRef &ErrMsg) { argument
612 onIdentifierExpr(const MCExpr *SymRef, StringRef SymRefName, const InlineAsmIdentifierInfo &IDInfo, bool ParsingInlineAsm, StringRef &ErrMsg) argument
643 onInteger(int64_t TmpInt, StringRef &ErrMsg) argument
817 onOffset(const MCExpr *Val, SMLoc OffsetLoc, StringRef ID, const InlineAsmIdentifierInfo &IDInfo, bool ParsingInlineAsm, StringRef &ErrMsg) argument
1043 CheckBaseRegAndIndexRegAndScale(unsigned BaseReg, unsigned IndexReg, unsigned Scale, bool Is64BitMode, StringRef &ErrMsg) argument
1500 StringRef ErrMsg; local
1969 StringRef ErrMsg; local
2297 StringRef ErrMsg; local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Driver/
H A DJob.h104 std::string *ErrMsg, bool *ExecutionFailed) const;
149 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
168 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
186 int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp258 std::string ErrMsg; local
259 raw_string_ostream ErrMsgStream(ErrMsg);
271 std::string ErrMsg; local
272 raw_string_ostream ErrMsgStream(ErrMsg);
423 std::string ErrMsg("No known address for symbol '");
424 ErrMsg += Symbol;
425 ErrMsg += "'";
427 ErrMsg += " (this appears to be an assembler local label - "
430 return std::make_pair(EvalResult(ErrMsg), "");
794 std::string ErrMsg; local
827 std::string ErrMsg; local
[all...]
/freebsd-11-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);
/freebsd-11-stable/contrib/llvm-project/llvm/tools/lli/
H A DRemoteJITUtils.h124 bool finalizeMemory(std::string *ErrMsg = nullptr) override {
125 return MemMgr->finalizeMemory(ErrMsg);

Completed in 454 milliseconds

123