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

12

/external/llvm/lib/Support/
H A DProgram.cpp27 unsigned memoryLimit, std::string *ErrMsg);
30 std::string *ErrMsg);
34 unsigned memoryLimit, std::string *ErrMsg,
37 if (Execute(&Data, Program, args, envp, redirects, memoryLimit, ErrMsg)) {
39 return Wait(Data, Program, secondsToWait, ErrMsg);
47 std::string *ErrMsg) {
48 Execute(/*Data*/ 0, Program, args, envp, redirects, memoryLimit, ErrMsg);
32 ExecuteAndWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned secondsToWait, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
45 ExecuteNoWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned memoryLimit, std::string *ErrMsg) argument
H A DGraphWriter.cpp84 StringRef Filename, bool wait, std::string &ErrMsg) {
86 if (sys::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
87 errs() << "Error: " << ErrMsg << "\n";
95 sys::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg);
105 std::string ErrMsg; local
115 if (!ExecGraphViewer(Graphviz, args, Filename, wait, ErrMsg))
134 if (!ExecGraphViewer(LLVM_PATH_XDOT, args, Filename, wait, ErrMsg))
193 if (!ExecGraphViewer(prog, args, Filename, wait, ErrMsg))
203 ErrMsg.clear();
204 if (!ExecGraphViewer(gv, args, PSFilename, wait, ErrMsg))
83 ExecGraphViewer(StringRef ExecPath, std::vector<const char*> &args, StringRef Filename, bool wait, std::string &ErrMsg) argument
[all...]
/external/llvm/utils/not/
H A Dnot.cpp32 std::string ErrMsg; local
33 int Result = sys::ExecuteAndWait(Program, argv, 0, 0, 0, 0, &ErrMsg);
35 errs() << "Error: " << ErrMsg << "\n";
/external/llvm/lib/Support/Unix/
H A DUnix.h58 /// This function builds an error message into \p ErrMsg using the \p prefix
66 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
67 if (!ErrMsg)
71 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
65 MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) argument
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) {
H A DProgram.inc96 static bool RedirectIO(const 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 dup2", Err);
180 unsigned memoryLimit, std::string *ErrMsg) {
206 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
207 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
212 if (RedirectIO_PS(RedirectsStr[2], 2, ErrMsg, FileActions))
218 return !MakeErrMsg(ErrMsg, "Ca
[all...]
/external/llvm/lib/IRReader/
H A DIRReader.cpp33 std::string ErrMsg; local
34 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg);
37 ErrMsg);
66 std::string ErrMsg; local
67 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg);
70 ErrMsg);
/external/llvm/include/llvm/Support/
H A DDynamicLibrary.h76 std::string *ErrMsg = 0) {
77 return !getPermanentLibrary(Filename, ErrMsg).isValid();
H A DProgram.h84 std::string *ErrMsg = 0, ///< If non-zero, provides a pointer to a string
93 std::string *ErrMsg = 0);
H A DMemory.h98 /// \p ErrMsg [out] returns a string describing any error that occured.
118 /// a null memory block and fills in *ErrMsg.
123 std::string *ErrMsg = 0);
130 /// in *ErrMsg.
132 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = 0);
143 static bool setExecutable(MemoryBlock &M, std::string *ErrMsg = 0);
148 static bool setWritable(MemoryBlock &M, std::string *ErrMsg = 0);
H A DSignals.h31 bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = 0);
/external/llvm/include/llvm/Bitcode/
H A DReaderWriter.h32 /// in *ErrMsg with an error description if ErrMsg is non-null.
35 std::string *ErrMsg = 0);
39 /// On error, this returns null, and fills in *ErrMsg with an error
40 /// description if ErrMsg is non-null.
44 std::string *ErrMsg = 0);
49 /// of 'buffer'. On error, this returns "", and fills in *ErrMsg
50 /// if ErrMsg is non-null.
53 std::string *ErrMsg = 0);
56 /// If an error occurs, this returns null and fills in *ErrMsg i
[all...]
/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.cpp149 bool BugDriver::run(std::string &ErrMsg) { argument
153 return runManyPasses(PassesToRun, ErrMsg);
178 return debugCodeGeneratorCrash(ErrMsg);
190 return debugCodeGeneratorCrash(ErrMsg);
207 return debugCodeGeneratorCrash(ErrMsg);
214 return debugCodeGeneratorCrash(ErrMsg);
224 return debugCodeGeneratorCrash(ErrMsg);
H A DOptimizerDriver.cpp215 std::string ErrMsg; local
218 MemoryLimit, &ErrMsg);
235 outs() << "Execute failed: " << ErrMsg << "\n";
237 outs() << "Crashed: " << ErrMsg << "\n";
H A DExecutionDriver.cpp304 std::string ErrMsg; local
440 /// generator (e.g., llc crashes), this will set ErrMsg.
446 std::string *ErrMsg) const {
449 executeProgram(Program, "", BitcodeFile, SharedObject, 0, ErrMsg));
450 if (!ErrMsg->empty())
H A DBugDriver.h90 bool run(std::string &ErrMsg);
272 std::string &ErrMsg);
/external/llvm/include/llvm/ExecutionEngine/
H A DRTDyldMemoryManager.h71 virtual bool finalizeMemory(std::string *ErrMsg = 0) = 0;
H A DSectionMemoryManager.h74 virtual bool finalizeMemory(std::string *ErrMsg = 0);
/external/llvm/lib/Support/Windows/
H A DProgram.inc80 static HANDLE RedirectIO(const StringRef *path, int fd, std::string* ErrMsg) {
104 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " +
180 std::string* ErrMsg) {
182 if (ErrMsg)
183 *ErrMsg = "program not executable";
267 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
269 MakeErrMsg(ErrMsg, "can't redirect stdin");
272 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
275 MakeErrMsg(ErrMsg, "can't redirect stdout");
286 si.hStdError = RedirectIO(redirects[2], 2, ErrMsg);
[all...]
H A DWindows.h35 inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { argument
36 if (!ErrMsg)
41 *ErrMsg = prefix + buffer;
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DSectionMemoryManager.cpp103 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) argument
112 if (ErrMsg) {
113 *ErrMsg = ec.message();
122 if (ErrMsg) {
123 *ErrMsg = ec.message();
/external/llvm/tools/lli/
H A DRecordingMemoryManager.h61 bool finalizeMemory(std::string *ErrMsg) { return false; } argument
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp348 LLVMBool (*FinalizeMemory)(void *Opaque, char **ErrMsg);
365 virtual bool finalizeMemory(std::string *ErrMsg);
401 bool SimpleBindingMemoryManager::finalizeMemory(std::string *ErrMsg) { argument
407 if (ErrMsg)
408 *ErrMsg = errMsgCString;
424 LLVMBool (*FinalizeMemory)(void *Opaque, char **ErrMsg),
416 LLVMCreateSimpleMCJITMemoryManager( void *Opaque, uint8_t *(*AllocateCodeSection)(void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID), uint8_t *(*AllocateDataSection)(void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, LLVMBool IsReadOnly), LLVMBool (*FinalizeMemory)(void *Opaque, char **ErrMsg), void (*Destroy)(void *Opaque)) argument
/external/llvm/unittests/Support/
H A DPath.cpp369 std::string ErrMsg; local
370 raw_fd_ostream file(file_pathname.c_str(), ErrMsg, sys::fs::F_Binary);
385 std::string ErrMsg; local
389 raw_fd_ostream File(FilePathname.c_str(), ErrMsg);
390 EXPECT_EQ(ErrMsg, "");
400 raw_fd_ostream File(FilePathname.c_str(), ErrMsg, sys::fs::F_Binary);
401 EXPECT_EQ(ErrMsg, "");

Completed in 302 milliseconds

12