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

123

/netbsd-current/external/apache2/llvm/dist/llvm/bindings/go/llvm/
H A DSupportBindings.h21 // stable C API and adds an extra ErrMsg parameter to retrieve the error
23 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg);
H A DSupportBindings.cpp18 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg) { argument
21 *ErrMsg = static_cast<char *>(malloc(ErrMsgStr.size() + 1));
22 memcpy(static_cast<void *>(*ErrMsg),
/netbsd-current/external/apache2/llvm/dist/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 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
172 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { argument
[all...]
H A DProgram.cpp29 unsigned MemoryLimit, std::string *ErrMsg,
36 std::string *ErrMsg, bool *ExecutionFailed,
41 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg,
47 ErrMsg, ProcStat);
60 unsigned MemoryLimit, std::string *ErrMsg,
66 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg,
32 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, BitVector *AffinityMask) argument
57 ExecuteNoWait(StringRef Program, ArrayRef<StringRef> Args, Optional<ArrayRef<StringRef>> Env, ArrayRef<Optional<StringRef>> Redirects, unsigned MemoryLimit, std::string *ErrMsg, bool *ExecutionFailed, BitVector *AffinityMask) 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...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DError.h58 void LLVMDisposeErrorMessage(char *ErrMsg);
68 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg);
/netbsd-current/external/apache2/llvm/dist/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,
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, FileAction
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-reduce/
H A DTestRunner.cpp28 std::string ErrMsg; local
31 /*SecondsToWait=*/0, /*MemoryLimit=*/0, &ErrMsg);
35 ErrMsg,
/netbsd-current/external/apache2/llvm/dist/llvm/utils/not/
H A Dnot.cpp60 std::string ErrMsg; local
61 int Result = sys::ExecuteAndWait(*Program, Argv, None, {}, 0, 0, &ErrMsg);
71 WithColor::error() << ErrMsg << "\n";
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DDynamicLibrary.h86 std::string *ErrMsg = nullptr) {
87 return !getPermanentLibrary(Filename, ErrMsg).isValid();
H A DBinaryStreamError.h42 std::string ErrMsg; member in class:llvm::BinaryStreamError
H A DSignals.h32 bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = nullptr);
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-current/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
H A DOrcV2CBindingsBasicUsage.c19 char *ErrMsg = LLVMGetErrorMessage(Err); local
20 fprintf(stderr, "Error: %s\n", ErrMsg);
21 LLVMDisposeErrorMessage(ErrMsg);
/netbsd-current/external/apache2/llvm/dist/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());
/netbsd-current/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/
H A DOrcV2CBindingsAddObjectFile.c20 char *ErrMsg = LLVMGetErrorMessage(Err); local
21 fprintf(stderr, "Error: %s\n", ErrMsg);
22 LLVMDisposeErrorMessage(ErrMsg);
/netbsd-current/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
H A DOrcV2CBindingsRemovableCode.c19 char *ErrMsg = LLVMGetErrorMessage(Err); local
20 fprintf(stderr, "Error: %s\n", ErrMsg);
21 LLVMDisposeErrorMessage(ErrMsg);
/netbsd-current/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dobj2yaml.cpp69 std::string ErrMsg; local
70 raw_string_ostream OS(ErrMsg);
73 errs() << "Error reading file: " << Input << ": " << ErrMsg; local
/netbsd-current/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; local
73 MakeErrMsg(&ErrMsg, Msg);
74 llvm::report_fatal_error(ErrMsg);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DRegisterEHFrames.cpp178 auto ErrMsg = toString(std::move(Err)); local
179 return WrapperFunctionResult::from(ErrMsg).release();
204 auto ErrMsg = toString(std::move(Err)); local
205 return WrapperFunctionResult::from(ErrMsg).release();
/netbsd-current/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
[all...]
/netbsd-current/external/apache2/llvm/dist/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
156 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp222 std::string ErrMsg = "could not open bitcode file for writing: "; local
223 ErrMsg += Path.str() + ": " + EC.message();
224 emitError(ErrMsg);
233 std::string ErrMsg = "could not write bitcode file: "; local
234 ErrMsg += Path.str() + ": " + Out.os().error().message();
235 emitError(ErrMsg);
328 std::string ErrMsg; local
329 MArch = TargetRegistry::lookupTarget(TripleStr, ErrMsg);
331 emitError(ErrMsg);
680 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { argument
687 emitWarning(const std::string &ErrMsg) argument
[all...]

Completed in 469 milliseconds

123