Home
last modified time | relevance | path

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

123456789

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
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()
DGraphWriter.cpp95 std::string &ErrMsg) { in ExecGraphViewer() argument
97 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
98 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
104 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer()
151 std::string ErrMsg; in DisplayGraph() local
164 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
173 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
184 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
197 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
244 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
[all …]
DError.cpp142 std::string ErrMsg; in report_fatal_error() local
144 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
147 report_fatal_error(ErrMsg); in report_fatal_error()
160 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
161 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
162 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
163 return ErrMsg; in LLVMGetErrorMessage()
166 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
DProgram.cpp28 unsigned MemoryLimit, std::string *ErrMsg);
34 std::string *ErrMsg, bool *ExecutionFailed) { in ExecuteAndWait() argument
37 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) { in ExecuteAndWait()
41 PI, SecondsToWait, /*WaitUntilTerminates=*/SecondsToWait == 0, ErrMsg); in ExecuteAndWait()
54 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
60 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) in ExecuteNoWait()
/external/llvm-project/llvm/lib/Support/
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()
DError.cpp142 std::string ErrMsg; in report_fatal_error() local
144 raw_string_ostream ErrStream(ErrMsg); in report_fatal_error()
147 report_fatal_error(ErrMsg); in report_fatal_error()
160 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage() local
161 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
162 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
163 return ErrMsg; in LLVMGetErrorMessage()
166 void LLVMDisposeErrorMessage(char *ErrMsg) { delete[] ErrMsg; } in LLVMDisposeErrorMessage() argument
172 LLVMErrorRef LLVMCreateStringError(const char *ErrMsg) { in LLVMCreateStringError() argument
173 return wrap(make_error<StringError>(ErrMsg, inconvertibleErrorCode())); in LLVMCreateStringError()
DGraphWriter.cpp120 std::string &ErrMsg) { in ExecGraphViewer() argument
122 if (sys::ExecuteAndWait(ExecPath, args, None, {}, 0, 0, &ErrMsg)) { in ExecGraphViewer()
123 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
129 sys::ExecuteNoWait(ExecPath, args, None, {}, 0, &ErrMsg); in ExecGraphViewer()
176 std::string ErrMsg; in DisplayGraph() local
189 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
198 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
209 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
222 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
269 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
[all …]
DProgram.cpp29 unsigned MemoryLimit, std::string *ErrMsg);
35 std::string *ErrMsg, bool *ExecutionFailed, in ExecuteAndWait() argument
39 if (Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) { in ExecuteAndWait()
44 ErrMsg, ProcStat); in ExecuteAndWait()
57 unsigned MemoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
63 if (!Execute(PI, Program, Args, Env, Redirects, MemoryLimit, ErrMsg)) in ExecuteNoWait()
/external/llvm/tools/obj2yaml/
DError.h36 Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in Obj2YamlError() argument
37 Obj2YamlError(obj2yaml_error C, std::string ErrMsg) in Obj2YamlError() argument
38 : ErrMsg(std::move(ErrMsg)), Code(C) {} in Obj2YamlError()
40 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage()
44 std::string ErrMsg;
/external/llvm/lib/Support/
DProgram.cpp28 unsigned memoryLimit, std::string *ErrMsg);
32 unsigned memoryLimit, std::string *ErrMsg, in ExecuteAndWait() argument
35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait()
39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); in ExecuteAndWait()
51 unsigned memoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
DGraphWriter.cpp83 std::string &ErrMsg) { in ExecGraphViewer() argument
87 &ErrMsg)) { in ExecGraphViewer()
88 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); in ExecGraphViewer()
138 std::string ErrMsg; in DisplayGraph() local
152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph()
237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DProgram.cpp28 unsigned memoryLimit, std::string *ErrMsg);
32 unsigned memoryLimit, std::string *ErrMsg, in ExecuteAndWait() argument
35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait()
39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); in ExecuteAndWait()
51 unsigned memoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument
56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
/external/llvm-project/llvm/lib/Support/Unix/
DUnix.h60 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
61 if (!ErrMsg)
65 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
72 std::string ErrMsg; in ReportErrnumFatal() local
73 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
74 llvm::report_fatal_error(ErrMsg); in ReportErrnumFatal()
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, FileActions))
[all …]
/external/llvm/lib/Support/Unix/
DProgram.inc99 static bool RedirectIO(const 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,
142 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
183 unsigned memoryLimit, std::string *ErrMsg) {
185 if (ErrMsg)
186 *ErrMsg = std::string("Executable \"") + Program.str() +
216 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
217 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DProgram.inc99 static bool RedirectIO(const 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,
142 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
183 unsigned memoryLimit, std::string *ErrMsg) {
185 if (ErrMsg)
186 *ErrMsg = std::string("Executable \"") + Program.str() +
216 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
217 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DUnix.h64 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
65 if (!ErrMsg)
69 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
76 std::string ErrMsg; in ReportErrnumFatal() local
77 MakeErrMsg(&ErrMsg, Msg, errnum); in ReportErrnumFatal()
78 llvm::report_fatal_error(ErrMsg); in ReportErrnumFatal()
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, FileActions))
[all …]
/external/llvm/lib/DebugInfo/PDB/
DGenericError.cpp53 ErrMsg = "PDB Error: "; in GenericError()
56 ErrMsg += EC.message() + " "; in GenericError()
58 ErrMsg += Context; in GenericError()
61 void GenericError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log()
63 const std::string &GenericError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
/external/llvm/lib/DebugInfo/CodeView/
DCodeViewError.cpp53 ErrMsg = "CodeView Error: "; in CodeViewError()
56 ErrMsg += EC.message() + " "; in CodeViewError()
58 ErrMsg += Context; in CodeViewError()
61 void CodeViewError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log()
63 const std::string &CodeViewError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
/external/llvm/lib/DebugInfo/PDB/DIA/
DDIAError.cpp45 ErrMsg = "DIA Error: "; in DIAError()
48 ErrMsg += EC.message() + " "; in DIAError()
50 ErrMsg += Context; in DIAError()
53 void DIAError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log()
55 const std::string &DIAError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
/external/clang/lib/Driver/
DJob.cpp231 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument
242 /*memoryLimit*/ 0, ErrMsg, in Execute()
260 if (ErrMsg) in Execute()
261 *ErrMsg = EC.message(); in Execute()
269 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed); in Execute()
294 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument
296 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
301 if (ErrMsg) in Execute()
302 ErrMsg->clear(); in Execute()
309 int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed); in Execute()
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DRawError.cpp53 ErrMsg = "Native PDB Error: "; in RawError()
56 ErrMsg += EC.message() + " "; in RawError()
58 ErrMsg += Context; in RawError()
61 void RawError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log()
63 const std::string &RawError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
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 = "program not executable";
[all …]
/external/llvm-project/llvm/lib/Support/Windows/
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 = "program not executable";
[all …]

123456789