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

12

/external/llvm/utils/not/
H A Dnot.cpp18 std::string ErrMsg; local
20 &ErrMsg);
22 errs() << "Error: " << ErrMsg << "\n";
/external/llvm/lib/Support/
H A DProgram.cpp32 std::string* ErrMsg) {
34 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg))
35 return prg.Wait(path, secondsToWait, ErrMsg);
46 std::string* ErrMsg) {
48 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) argument
41 ExecuteNoWait(const Path& path, const char** args, const char** envp, const Path** redirects, unsigned memoryLimit, std::string* ErrMsg) argument
H A DGraphWriter.cpp59 const sys::Path &Filename, bool wait, std::string &ErrMsg) {
61 if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
62 errs() << "Error: " << ErrMsg << "\n";
69 sys::Program::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg);
78 std::string ErrMsg; local
88 if (!ExecGraphViewer(Graphviz, args, Filename, wait, ErrMsg))
107 if (!ExecGraphViewer(sys::Path(LLVM_PATH_XDOT_PY), args, Filename, wait, ErrMsg))
168 if (!ExecGraphViewer(prog, args, Filename, wait, ErrMsg))
178 ErrMsg.clear();
179 if (!ExecGraphViewer(gv, args, PSFilename, wait, ErrMsg))
58 ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args, const sys::Path &Filename, bool wait, std::string &ErrMsg) argument
[all...]
/external/llvm/include/llvm/Support/
H A DProgram.h80 std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
101 std::string* ErrMsg ///< If non-zero, provides a pointer to a string
111 ( std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
142 std::string* ErrMsg = 0);
151 std::string* ErrMsg = 0);
H A DMemory.h53 /// a null memory block and fills in *ErrMsg.
58 std::string *ErrMsg = 0);
65 /// in *ErrMsg.
67 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = 0);
78 static bool setExecutable(MemoryBlock &M, std::string *ErrMsg = 0);
83 static bool setWritable(MemoryBlock &M, std::string *ErrMsg = 0);
H A DIRReader.h40 std::string ErrMsg; local
41 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg);
44 ErrMsg);
81 std::string ErrMsg; local
82 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg);
85 ErrMsg);
H A DDynamicLibrary.h76 std::string *ErrMsg = 0) {
77 return !getPermanentLibrary(Filename, ErrMsg).isValid();
H A DSignals.h30 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...]
/external/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.inc105 static bool RedirectIO(const Path *Path, int FD, std::string* ErrMsg) {
118 MakeErrMsg(ErrMsg, "Cannot open file '" + std::string(File) + "' for "
125 MakeErrMsg(ErrMsg, "Cannot dup2");
134 static bool RedirectIO_PS(const Path *Path, int FD, std::string *ErrMsg,
147 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
183 std::string *ErrMsg) {
196 if (RedirectIO_PS(redirects[0], 0, ErrMsg, FileActions) ||
197 RedirectIO_PS(redirects[1], 1, ErrMsg, FileActions))
202 if (RedirectIO_PS(redirects[2], 2, ErrMsg, FileActions)) return false;
207 return !MakeErrMsg(ErrMsg, "Ca
[all...]
H A DMemory.inc33 std::string *ErrMsg) {
43 MakeErrMsg(ErrMsg, "Can't open /dev/zero device");
71 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
80 MakeErrMsg(ErrMsg, "vm_protect max RX failed");
88 MakeErrMsg(ErrMsg, "vm_protect RW failed");
100 bool llvm::sys::Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
103 return MakeErrMsg(ErrMsg, "Can't release RWX Memory");
107 bool llvm::sys::Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {
119 bool llvm::sys::Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
/external/llvm/lib/Support/Windows/
H A DMemory.inc29 std::string *ErrMsg) {
43 return AllocateRWX(NumBytes, NULL, ErrMsg);
45 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory: ");
55 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
58 return MakeErrMsg(ErrMsg, "Can't release RWX Memory: ");
70 bool Memory::setWritable(MemoryBlock &M, std::string *ErrMsg) {
72 return MakeErrMsg(ErrMsg, "Cannot set memory to writeable: ");
77 bool Memory::setExecutable(MemoryBlock &M, std::string *ErrMsg) {
79 return MakeErrMsg(ErrMsg, "Cannot set memory to executable: ");
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.inc97 static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) {
121 MakeErrMsg(ErrMsg, std::string(fname) + ": Can't open file for " +
158 std::string* ErrMsg) {
167 if (ErrMsg)
168 *ErrMsg = "program not executable";
245 si.hStdInput = RedirectIO(redirects[0], 0, ErrMsg);
247 MakeErrMsg(ErrMsg, "can't redirect stdin");
250 si.hStdOutput = RedirectIO(redirects[1], 1, ErrMsg);
253 MakeErrMsg(ErrMsg, "can't redirect stdout");
264 si.hStdError = RedirectIO(redirects[2], 2, ErrMsg);
[all...]
/external/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()) {
/external/llvm/lib/Archive/
H A DArchiveWriter.cpp159 std::string* ErrMsg) {
162 if (ErrMsg)
163 *ErrMsg = "Can not add a non-existent file to archive";
171 const sys::FileStatus *FSInfo = mbr->path.getFileStatus(false, ErrMsg);
207 std::string* ErrMsg
221 if (ErrMsg)
222 *ErrMsg = ec.message();
237 GetBitcodeSymbols(data, fSize, FullMemberName, Context, symbols, ErrMsg);
257 if (ErrMsg)
258 *ErrMsg
158 addFileBefore(const sys::Path& filePath, iterator where, std::string* ErrMsg) argument
351 writeToDisk(bool CreateSymbolTable, bool TruncateNames, std::string* ErrMsg) argument
[all...]
H A DArchive.cpp69 bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { argument
72 if (ErrMsg)
73 *ErrMsg = "Can not replace an archive member with a non-existent file";
123 const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg);
151 Archive::mapToMemory(std::string* ErrMsg) { argument
154 if (ErrMsg)
155 *ErrMsg = ec.message();
221 std::string* ErrMsg) {
224 if (ErrMsg) *ErrMsg
218 GetBitcodeSymbols(const sys::Path& fName, LLVMContext& Context, std::vector<std::string>& symbols, std::string* ErrMsg) argument
242 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.h78 std::string* ErrMsg);
84 std::string* ErrMsg);
/external/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp273 std::set<sys::Path>& result, std::string* ErrMsg) {
277 if (path.getDirectoryContents(content, ErrMsg))
284 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg);
289 if (recurseDirectories(*I, moreResults, ErrMsg))
303 bool buildPaths(bool checkExistence, std::string* ErrMsg) { argument
319 if (recurseDirectories(aPath, dirpaths, ErrMsg))
347 bool doPrint(std::string* ErrMsg) { argument
348 if (buildPaths(false, ErrMsg))
399 doDisplayTable(std::string* ErrMsg) { argument
400 if (buildPaths(false, ErrMsg))
272 recurseDirectories(const sys::Path& path, std::set<sys::Path>& result, std::string* ErrMsg) argument
435 doExtract(std::string* ErrMsg) argument
478 doDelete(std::string* ErrMsg) argument
511 doMove(std::string* ErrMsg) argument
564 doQuickAppend(std::string* ErrMsg) argument
589 doReplaceOrInsert(std::string* ErrMsg) argument
737 std::string ErrMsg; local
752 errs() << argv[0] << ": " << ErrMsg << "\\n"; local
[all...]
/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/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/
H A Dcompile.h85 const char *ErrMsg; member in struct:CPPStruct_Rec
/external/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";

Completed in 356 milliseconds

12