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

12

/freebsd-9.3-release/contrib/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)) {
37 ProcessInfo Result = Wait(PI, secondsToWait, true, ErrMsg);
49 unsigned memoryLimit, std::string *ErrMsg,
54 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
47 ExecuteNoWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) 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...]
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DProgram.h106 std::string *ErrMsg = 0, ///< If non-zero, provides a pointer to a string
120 std::string *ErrMsg = 0, bool *ExecutionFailed = 0);
141 std::string *ErrMsg = 0 ///< If non-zero, provides a pointer to a string
H A DDynamicLibrary.h76 std::string *ErrMsg = 0) {
77 return !getPermanentLibrary(Filename, ErrMsg).isValid();
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);
/freebsd-9.3-release/contrib/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.inc101 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) {
114 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
121 MakeErrMsg(ErrMsg, "Cannot dup2");
130 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
144 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
185 unsigned memoryLimit, std::string *ErrMsg) {
187 if (ErrMsg)
188 *ErrMsg = std::string("Executable \"") + Program.str() +
218 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
219 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) {
/freebsd-9.3-release/contrib/llvm/lib/IRReader/
H A DIRReader.cpp38 std::string ErrMsg; local
39 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg);
42 ErrMsg);
71 std::string ErrMsg; local
72 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg);
75 ErrMsg);
/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/contrib/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 DBugDriver.h90 bool run(std::string &ErrMsg);
272 std::string &ErrMsg);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Driver/
H A DJob.cpp116 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, argument
126 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed);
150 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, argument
152 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed);
156 // Clear ExecutionFailed and ErrMsg before falling back.
157 if (ErrMsg)
158 ErrMsg->clear();
162 int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed);
/freebsd-9.3-release/contrib/llvm/lib/Support/Windows/
H A DWindows.h38 inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { argument
39 if (!ErrMsg)
46 *ErrMsg = prefix + buffer;
48 *ErrMsg = prefix + "Unknown error";
H A DProgram.inc71 static HANDLE RedirectIO(const StringRef *path, int fd, std::string* ErrMsg) {
100 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " +
172 unsigned memoryLimit, std::string *ErrMsg) {
174 if (ErrMsg)
175 *ErrMsg = "program not executable";
232 MakeErrMsg(ErrMsg, "Unable to convert environment variable to UTF-16");
253 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
255 MakeErrMsg(ErrMsg, "can't redirect stdin");
258 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
261 MakeErrMsg(ErrMsg, "ca
[all...]
/freebsd-9.3-release/contrib/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();
H A DMCJIT.h64 virtual bool finalizeMemory(std::string *ErrMsg = 0) {
65 return ClientMM->finalizeMemory(ErrMsg);
/freebsd-9.3-release/contrib/llvm/include/llvm/ExecutionEngine/
H A DRTDyldMemoryManager.h103 virtual bool finalizeMemory(std::string *ErrMsg = 0) = 0;
H A DSectionMemoryManager.h76 virtual bool finalizeMemory(std::string *ErrMsg = 0);
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Driver/
H A DJob.h82 virtual int Execute(const StringRef **Redirects, std::string *ErrMsg,
110 virtual int Execute(const StringRef **Redirects, std::string *ErrMsg,
/freebsd-9.3-release/contrib/llvm/tools/lli/
H A DRemoteMemoryManager.h85 bool finalizeMemory(std::string *ErrMsg);
/freebsd-9.3-release/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp362 virtual bool finalizeMemory(std::string *ErrMsg);
402 bool SimpleBindingMemoryManager::finalizeMemory(std::string *ErrMsg) { argument
408 if (ErrMsg)
409 *ErrMsg = errMsgCString;

Completed in 144 milliseconds

12