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

12

/external/llvm/utils/not/
H A Dnot.cpp32 std::string ErrMsg; local
34 &ErrMsg);
44 errs() << "Error: " << ErrMsg << "\n";
/external/llvm/lib/Support/
H A DProgram.cpp27 unsigned memoryLimit, std::string *ErrMsg);
31 unsigned memoryLimit, std::string *ErrMsg,
34 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) {
38 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg);
50 unsigned memoryLimit, std::string *ErrMsg,
55 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg))
29 ExecuteAndWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned secondsToWait, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
48 ExecuteNoWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
H A DGraphWriter.cpp84 std::string &ErrMsg) {
88 &ErrMsg)) {
89 errs() << "Error: " << ErrMsg << "\n";
95 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg);
137 std::string ErrMsg; local
149 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
164 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
197 if (ExecGraphViewer(GeneratorPath, args, Filename, wait, ErrMsg))
220 ErrMsg.clear();
221 return ExecGraphViewer(ViewerPath, args, PSFilename, wait, ErrMsg);
82 ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args, StringRef Filename, bool wait, std::string &ErrMsg) argument
[all...]
/external/llvm/lib/Support/Unix/
H A DUnix.h62 /// This function builds an error message into \p ErrMsg using the \p prefix
70 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
71 if (!ErrMsg)
75 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
69 MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) argument
H A DProgram.inc102 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) {
115 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
122 MakeErrMsg(ErrMsg, "Cannot dup2");
131 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
145 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
186 unsigned memoryLimit, std::string *ErrMsg) {
188 if (ErrMsg)
189 *ErrMsg = std::string("Executable \"") + Program.str() +
219 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
220 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileAction
[all...]
H A DMemory.inc181 std::string *ErrMsg) {
191 MakeErrMsg(ErrMsg, "Can't open /dev/zero device");
219 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
228 MakeErrMsg(ErrMsg, "vm_protect max RX failed");
236 MakeErrMsg(ErrMsg, "vm_protect RW failed");
248 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
251 return MakeErrMsg(ErrMsg, "Can't release RWX Memory");
255 bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {
267 bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
/external/llvm/include/llvm/Support/
H A DDynamicLibrary.h76 std::string *ErrMsg = nullptr) {
77 return !getPermanentLibrary(Filename, ErrMsg).isValid();
H A DMemory.h98 /// \p ErrMsg [out] returns a string describing any error that occurred.
118 /// a null memory block and fills in *ErrMsg.
123 std::string *ErrMsg = nullptr);
130 /// in *ErrMsg.
132 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = nullptr);
143 static bool setExecutable(MemoryBlock &M, std::string *ErrMsg = nullptr);
148 static bool setWritable(MemoryBlock &M, std::string *ErrMsg = nullptr);
H A DSignals.h31 bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = nullptr);
H A DProgram.h109 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
123 std::string *ErrMsg = nullptr, bool *ExecutionFailed = nullptr);
144 std::string *ErrMsg = nullptr ///< If non-zero, provides a pointer to a
/external/llvm/tools/bugpoint/
H A DFindBugs.cpp34 std::string &ErrMsg) {
84 return debugCodeGeneratorCrash(ErrMsg);
102 debugCodeGeneratorCrash(ErrMsg);
33 runManyPasses(const std::vector<std::string> &AllPasses, std::string &ErrMsg) argument
H A DBugDriver.cpp153 bool BugDriver::run(std::string &ErrMsg) { argument
157 return runManyPasses(PassesToRun, ErrMsg);
182 return debugCodeGeneratorCrash(ErrMsg);
194 return debugCodeGeneratorCrash(ErrMsg);
211 return debugCodeGeneratorCrash(ErrMsg);
218 return debugCodeGeneratorCrash(ErrMsg);
228 return debugCodeGeneratorCrash(ErrMsg);
H A DOptimizerDriver.cpp217 std::string ErrMsg; local
220 Timeout, MemoryLimit, &ErrMsg);
237 outs() << "Execute failed: " << ErrMsg << "\n";
239 outs() << "Crashed: " << ErrMsg << "\n";
/external/clang/lib/Driver/
H A DJob.cpp121 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, argument
131 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed);
155 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, argument
157 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed);
161 // Clear ExecutionFailed and ErrMsg before falling back.
162 if (ErrMsg)
163 ErrMsg->clear();
170 int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed);
/external/llvm/lib/Support/Windows/
H A DWindowsSupport.h42 inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { argument
43 if (!ErrMsg)
50 *ErrMsg = prefix + buffer;
52 *ErrMsg = prefix + "Unknown error";
H A DProgram.inc70 static HANDLE RedirectIO(const StringRef *path, int fd, std::string* ErrMsg) {
99 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " +
171 unsigned memoryLimit, std::string *ErrMsg) {
173 if (ErrMsg)
174 *ErrMsg = "program not executable";
231 MakeErrMsg(ErrMsg, "Unable to convert environment variable to UTF-16");
252 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
254 MakeErrMsg(ErrMsg, "can't redirect stdin");
257 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
260 MakeErrMsg(ErrMsg, "ca
[all...]
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DSectionMemoryManager.cpp105 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) argument
117 if (ErrMsg) {
118 *ErrMsg = ec.message();
130 if (ErrMsg) {
131 *ErrMsg = ec.message();
/external/llvm/include/llvm/ExecutionEngine/
H A DSectionMemoryManager.h74 bool finalizeMemory(std::string *ErrMsg = nullptr) override;
H A DRTDyldMemoryManager.h117 virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
/external/clang/include/clang/Driver/
H A DJob.h82 virtual int Execute(const StringRef **Redirects, std::string *ErrMsg,
112 int Execute(const StringRef **Redirects, std::string *ErrMsg,
/external/llvm/include/llvm/Bitcode/
H A DReaderWriter.h37 /// On error, this returns null, and fills in *ErrMsg with an error
38 /// description if ErrMsg is non-null.
42 std::string *ErrMsg = nullptr);
/external/llvm/tools/lli/
H A DRemoteMemoryManager.h85 bool finalizeMemory(std::string *ErrMsg) override;
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp365 bool finalizeMemory(std::string *ErrMsg) override;
405 bool SimpleBindingMemoryManager::finalizeMemory(std::string *ErrMsg) { argument
411 if (ErrMsg)
412 *ErrMsg = errMsgCString;
/external/llvm/lib/IRReader/
H A DIRReader.cpp36 std::string ErrMsg; local
/external/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp102 bool finalizeMemory(std::string *ErrMsg) override { return false; }
154 std::string ErrMsg; local
155 if (sys::DynamicLibrary::LoadLibraryPermanently(Dylib.c_str(), &ErrMsg))
157 << ErrMsg << "\n"; local

Completed in 306 milliseconds

12