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

12

/freebsd-10.0-release/contrib/llvm/lib/Support/
H A DProgram.cpp32 std::string* ErrMsg,
35 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) {
37 return prg.Wait(path, secondsToWait, ErrMsg);
49 std::string* ErrMsg) {
51 prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg);
26 ExecuteAndWait(const Path& path, const char** args, const char** envp, const Path** redirects, unsigned secondsToWait, unsigned memoryLimit, std::string* ErrMsg, bool *ExecutionFailed) argument
44 ExecuteNoWait(const Path& path, const char** args, const char** envp, const Path** redirects, unsigned memoryLimit, std::string* ErrMsg) argument
H A DGraphWriter.cpp70 const sys::Path &Filename, bool wait, std::string &ErrMsg) {
72 if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
73 errs() << "Error: " << ErrMsg << "\n";
80 sys::Program::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg);
89 std::string ErrMsg; local
99 if (!ExecGraphViewer(Graphviz, args, Filename, wait, ErrMsg))
118 if (!ExecGraphViewer(sys::Path(LLVM_PATH_XDOT_PY), args, Filename, wait, ErrMsg))
179 if (!ExecGraphViewer(prog, args, Filename, wait, ErrMsg))
189 ErrMsg.clear();
190 if (!ExecGraphViewer(gv, args, PSFilename, wait, ErrMsg))
69 ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args, const sys::Path &Filename, bool wait, std::string &ErrMsg) argument
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/Unix/
H A DUnix.h64 /// This function builds an error message into \p ErrMsg using the \p prefix
72 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
73 if (!ErrMsg)
77 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
71 MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) argument
H A DProgram.inc104 static bool RedirectIO(const Path *Path, int FD, std::string* ErrMsg) {
117 MakeErrMsg(ErrMsg, "Cannot open file '" + std::string(File) + "' for "
124 MakeErrMsg(ErrMsg, "Cannot dup2");
133 static bool RedirectIO_PS(const Path *Path, int FD, std::string *ErrMsg,
146 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
186 std::string *ErrMsg) {
199 if (RedirectIO_PS(redirects[0], 0, ErrMsg, FileActions) ||
200 RedirectIO_PS(redirects[1], 1, ErrMsg, FileActions))
205 if (RedirectIO_PS(redirects[2], 2, ErrMsg, FileActions)) return false;
210 return !MakeErrMsg(ErrMsg, "Ca
[all...]
H A DMemory.inc177 std::string *ErrMsg) {
187 MakeErrMsg(ErrMsg, "Can't open /dev/zero device");
215 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
224 MakeErrMsg(ErrMsg, "vm_protect max RX failed");
232 MakeErrMsg(ErrMsg, "vm_protect RW failed");
244 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
247 return MakeErrMsg(ErrMsg, "Can't release RWX Memory");
251 bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {
263 bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
/freebsd-10.0-release/contrib/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);
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
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 DProgram.h77 std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
98 std::string* ErrMsg ///< If non-zero, provides a pointer to a string
129 std::string* ErrMsg = 0,
139 std::string* ErrMsg = 0);
H A DSignals.h31 bool RemoveFileOnSignal(const Path &Filename, std::string* ErrMsg = 0);
H A DPathV1.h109 /// @param ErrMsg Optional place for an error message if an error occurs
112 static Path GetTemporaryDirectory(std::string* ErrMsg = 0);
425 std::string* ErrMsg ///< Optional place to return an error message.
484 bool makeUnique( bool reuse_current /*= true*/, std::string* ErrMsg );
499 bool makeReadableOnDisk(std::string* ErrMsg = 0);
504 bool makeWriteableOnDisk(std::string* ErrMsg = 0);
510 bool makeExecutableOnDisk(std::string* ErrMsg = 0);
533 std::string* ErrMsg = 0 ///< Optional place to put error messages.
544 std::string* ErrMsg = 0 ///< Optional place to put error messages.
559 std::string* ErrMsg
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Archive/
H A DArchiveWriter.cpp160 std::string* ErrMsg) {
163 if (ErrMsg)
164 *ErrMsg = "Can not add a non-existent file to archive";
172 const sys::FileStatus *FSInfo = mbr->path.getFileStatus(false, ErrMsg);
208 std::string* ErrMsg
222 if (ErrMsg)
223 *ErrMsg = ec.message();
238 GetBitcodeSymbols(data, fSize, FullMemberName, Context, symbols, ErrMsg);
258 if (ErrMsg)
259 *ErrMsg
159 addFileBefore(const sys::Path& filePath, iterator where, std::string* ErrMsg) argument
352 writeToDisk(bool CreateSymbolTable, bool TruncateNames, std::string* ErrMsg) argument
[all...]
H A DArchive.cpp70 bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { argument
73 if (ErrMsg)
74 *ErrMsg = "Can not replace an archive member with a non-existent file";
124 const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg);
152 Archive::mapToMemory(std::string* ErrMsg) { argument
155 if (ErrMsg)
156 *ErrMsg = ec.message();
222 std::string* ErrMsg) {
225 if (ErrMsg) *ErrMsg
219 GetBitcodeSymbols(const sys::Path& fName, LLVMContext& Context, std::vector<std::string>& symbols, std::string* ErrMsg) argument
243 GetBitcodeSymbols(const char *BufPtr, unsigned Length, const std::string& ModuleID, LLVMContext& Context, std::vector<std::string>& symbols, std::string* ErrMsg) argument
[all...]
H A DArchiveInternals.h77 std::string* ErrMsg);
83 std::string* ErrMsg);
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/
H A DInheritViz.cpp138 std::string ErrMsg; local
139 sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg);
141 llvm::errs() << "Error: " << ErrMsg << "\n";
145 if (Filename.makeUnique(true,&ErrMsg)) {
146 llvm::errs() << "Error: " << ErrMsg << "\n";
152 llvm::raw_fd_ostream O(Filename.c_str(), ErrMsg);
154 if (ErrMsg.empty()) {
/freebsd-10.0-release/contrib/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp293 std::set<sys::Path>& result, std::string* ErrMsg) {
297 if (path.getDirectoryContents(content, ErrMsg))
304 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg);
309 if (recurseDirectories(*I, moreResults, ErrMsg))
323 bool buildPaths(bool checkExistence, std::string* ErrMsg) { argument
339 if (recurseDirectories(aPath, dirpaths, ErrMsg))
367 bool doPrint(std::string* ErrMsg) { argument
368 if (buildPaths(false, ErrMsg))
419 doDisplayTable(std::string* ErrMsg) { argument
420 if (buildPaths(false, ErrMsg))
292 recurseDirectories(const sys::Path& path, std::set<sys::Path>& result, std::string* ErrMsg) argument
455 doExtract(std::string* ErrMsg) argument
498 doDelete(std::string* ErrMsg) argument
531 doMove(std::string* ErrMsg) argument
584 doQuickAppend(std::string* ErrMsg) argument
609 doReplaceOrInsert(std::string* ErrMsg) argument
755 std::string ErrMsg; local
770 errs() << argv[0] << ": " << ErrMsg << "\\n"; local
[all...]
/freebsd-10.0-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-10.0-release/contrib/llvm/tools/bugpoint/
H A DFindBugs.cpp33 std::string &ErrMsg) {
83 return debugCodeGeneratorCrash(ErrMsg);
101 debugCodeGeneratorCrash(ErrMsg);
32 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.cpp118 std::string ErrMsg; local
119 if (uniqueFilename.makeUnique(true, &ErrMsg)) {
121 << ErrMsg << "\n";
128 if (inputFilename.makeUnique(true, &ErrMsg)) {
130 << ErrMsg << "\n";
209 Timeout, MemoryLimit, &ErrMsg);
226 outs() << "Execute failed: " << ErrMsg << "\n";
228 outs() << "Crashed: " << ErrMsg << "\n";
H A DExecutionDriver.cpp269 std::string ErrMsg; local
270 if (BitcodeFile.makeUnique(true, &ErrMsg)) {
271 errs() << ToolName << ": Error making unique filename: " << ErrMsg local
302 std::string ErrMsg; local
306 if (uniqueFilename.makeUnique(true, &ErrMsg)) {
308 << ErrMsg << "!\n"; local
330 if (uniqueFile.makeUnique(true, &ErrMsg)) {
332 << ErrMsg << "\n"; local
434 /// generator (e.g., llc crashes), this will set ErrMsg.
440 std::string *ErrMsg) cons
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/Windows/
H A DPath.inc190 Path::GetTemporaryDirectory(std::string* ErrMsg) {
208 if (ErrMsg)
209 *ErrMsg = "Can't determine temporary directory";
467 bool Path::makeReadableOnDisk(std::string* ErrMsg) {
472 bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
481 MakeErrMsg(ErrMsg, std::string(path) + ": Can't make file writable: ");
488 bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
494 Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
497 MakeErrMsg(ErrMsg, path + ": can't get status of file");
502 if (ErrMsg)
[all...]
H A DProgram.inc92 static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) {
116 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " +
191 std::string* ErrMsg) {
200 if (ErrMsg)
201 *ErrMsg = "program not executable";
285 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
287 MakeErrMsg(ErrMsg, "can't redirect stdin");
290 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
293 MakeErrMsg(ErrMsg, "can't redirect stdout");
304 si.hStdError = RedirectIO(redirects[2], 2, ErrMsg);
[all...]
H A DWindows.h34 inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { argument
35 if (!ErrMsg)
40 *ErrMsg = prefix + buffer;
/freebsd-10.0-release/contrib/llvm/lib/ExecutionEngine/MCJIT/
H A DSectionMemoryManager.cpp114 bool SectionMemoryManager::applyPermissions(std::string *ErrMsg) argument
123 if (ErrMsg) {
124 *ErrMsg = ec.message();
133 if (ErrMsg) {
134 *ErrMsg = ec.message();

Completed in 395 milliseconds

12