Home
last modified time | relevance | path

Searched refs:ErrMsg (Results 1 – 25 of 48) sorted by relevance

12

/external/llvm/lib/Archive/
DArchiveWriter.cpp159 std::string* ErrMsg) { in addFileBefore() argument
162 if (ErrMsg) in addFileBefore()
163 *ErrMsg = "Can not add a non-existent file to archive"; in addFileBefore()
171 const sys::FileStatus *FSInfo = mbr->path.getFileStatus(false, ErrMsg); in addFileBefore()
207 std::string* ErrMsg in writeMember() argument
221 if (ErrMsg) in writeMember()
222 *ErrMsg = ec.message(); in writeMember()
237 GetBitcodeSymbols(data, fSize, FullMemberName, Context, symbols, ErrMsg); in writeMember()
257 if (ErrMsg) in writeMember()
258 *ErrMsg = "Can't parse bitcode member: " + member.getPath().str() in writeMember()
[all …]
DArchive.cpp69 bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { in replaceWith() argument
72 if (ErrMsg) in replaceWith()
73 *ErrMsg = "Can not replace an archive member with a non-existent file"; in replaceWith()
123 const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg); in replaceWith()
151 Archive::mapToMemory(std::string* ErrMsg) { in mapToMemory() argument
154 if (ErrMsg) in mapToMemory()
155 *ErrMsg = ec.message(); in mapToMemory()
221 std::string* ErrMsg) { in GetBitcodeSymbols() argument
224 if (ErrMsg) *ErrMsg = "Could not open file '" + fName.str() + "'" + ": " in GetBitcodeSymbols()
229 Module *M = ParseBitcodeFile(Buffer.get(), Context, ErrMsg); in GetBitcodeSymbols()
[all …]
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp273 std::set<sys::Path>& result, std::string* ErrMsg) { in recurseDirectories() argument
277 if (path.getDirectoryContents(content, ErrMsg)) in recurseDirectories()
284 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg); in recurseDirectories()
289 if (recurseDirectories(*I, moreResults, ErrMsg)) in recurseDirectories()
303 bool buildPaths(bool checkExistence, std::string* ErrMsg) { in buildPaths() argument
319 if (recurseDirectories(aPath, dirpaths, ErrMsg)) in buildPaths()
347 bool doPrint(std::string* ErrMsg) { in doPrint() argument
348 if (buildPaths(false, ErrMsg)) in doPrint()
399 doDisplayTable(std::string* ErrMsg) { in doDisplayTable() argument
400 if (buildPaths(false, ErrMsg)) in doDisplayTable()
[all …]
/external/llvm/lib/Support/Unix/
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, "Can't redirect stderr to stdout", Err);
[all …]
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) {
DUnix.h72 std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
73 if (!ErrMsg)
77 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum);
DPath.inc135 Path::GetTemporaryDirectory(std::string *ErrMsg) {
141 MakeErrMsg(ErrMsg,
155 MakeErrMsg(ErrMsg,
162 MakeErrMsg(ErrMsg,
176 MakeErrMsg(ErrMsg,
181 MakeErrMsg(ErrMsg,
202 MakeErrMsg(ErrMsg,
532 bool Path::makeReadableOnDisk(std::string* ErrMsg) {
534 return MakeErrMsg(ErrMsg, path + ": can't make file readable");
538 bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
[all …]
/external/llvm/lib/Support/
DGraphWriter.cpp59 const sys::Path &Filename, bool wait, std::string &ErrMsg) { in ExecGraphViewer() argument
61 if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) { in ExecGraphViewer()
62 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer()
69 sys::Program::ExecuteNoWait(ExecPath, &args[0],0,0,0,&ErrMsg); in ExecGraphViewer()
78 std::string ErrMsg; in DisplayGraph() local
88 if (!ExecGraphViewer(Graphviz, args, Filename, wait, ErrMsg)) in DisplayGraph()
107 if (!ExecGraphViewer(sys::Path(LLVM_PATH_XDOT_PY), args, Filename, wait, ErrMsg)) in DisplayGraph()
168 if (!ExecGraphViewer(prog, args, Filename, wait, ErrMsg)) in DisplayGraph()
178 ErrMsg.clear(); in DisplayGraph()
179 if (!ExecGraphViewer(gv, args, PSFilename, wait, ErrMsg)) in DisplayGraph()
[all …]
DProgram.cpp32 std::string* ErrMsg) { in ExecuteAndWait() argument
34 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteAndWait()
35 return prg.Wait(path, secondsToWait, ErrMsg); in ExecuteAndWait()
46 std::string* ErrMsg) { in ExecuteNoWait() argument
48 prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg); in ExecuteNoWait()
/external/llvm/include/llvm/Support/
DPathV1.h112 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 = 0 ///< Optional place to put error messages
567 bool renamePathOnDisk(const Path& newName, std::string* ErrMsg);
[all …]
DIRReader.h40 std::string ErrMsg; in getLazyIRModule() local
41 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg); in getLazyIRModule()
44 ErrMsg); in getLazyIRModule()
81 std::string ErrMsg; in ParseIR() local
82 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg); in ParseIR()
85 ErrMsg); in ParseIR()
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);
DMemory.h58 std::string *ErrMsg = 0);
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);
/external/clang/lib/AST/
DInheritViz.cpp138 std::string ErrMsg; in viewInheritance() local
139 sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); in viewInheritance()
141 llvm::errs() << "Error: " << ErrMsg << "\n"; in viewInheritance()
145 if (Filename.makeUnique(true,&ErrMsg)) { in viewInheritance()
146 llvm::errs() << "Error: " << ErrMsg << "\n"; in viewInheritance()
152 llvm::raw_fd_ostream O(Filename.c_str(), ErrMsg); in viewInheritance()
154 if (ErrMsg.empty()) { in viewInheritance()
/external/llvm/lib/Support/Windows/
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: ");
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 …]
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 …]
/external/llvm/tools/bugpoint/
DBugDriver.cpp149 bool BugDriver::run(std::string &ErrMsg) { in run() argument
153 return runManyPasses(PassesToRun, ErrMsg); in run()
178 return debugCodeGeneratorCrash(ErrMsg); in run()
190 return debugCodeGeneratorCrash(ErrMsg); in run()
207 return debugCodeGeneratorCrash(ErrMsg); in run()
214 return debugCodeGeneratorCrash(ErrMsg); in run()
224 return debugCodeGeneratorCrash(ErrMsg); in run()
DOptimizerDriver.cpp118 std::string ErrMsg; in runPasses() local
119 if (uniqueFilename.makeUnique(true, &ErrMsg)) { in runPasses()
121 << ErrMsg << "\n"; in runPasses()
128 if (inputFilename.makeUnique(true, &ErrMsg)) { in runPasses()
130 << ErrMsg << "\n"; in runPasses()
209 Timeout, MemoryLimit, &ErrMsg); in runPasses()
226 outs() << "Execute failed: " << ErrMsg << "\n"; in runPasses()
228 outs() << "Crashed: " << ErrMsg << "\n"; in runPasses()
DExecutionDriver.cpp269 std::string ErrMsg; in compileProgram() local
270 if (BitcodeFile.makeUnique(true, &ErrMsg)) { in compileProgram()
271 errs() << ToolName << ": Error making unique filename: " << ErrMsg in compileProgram()
302 std::string ErrMsg; in executeProgram() local
306 if (uniqueFilename.makeUnique(true, &ErrMsg)) { in executeProgram()
308 << ErrMsg << "!\n"; in executeProgram()
330 if (uniqueFile.makeUnique(true, &ErrMsg)) { in executeProgram()
332 << ErrMsg << "\n"; in executeProgram()
440 std::string *ErrMsg) const { in diffProgram()
443 ErrMsg)); in diffProgram()
[all …]
DFindBugs.cpp33 std::string &ErrMsg) { in runManyPasses() argument
83 return debugCodeGeneratorCrash(ErrMsg); in runManyPasses()
101 debugCodeGeneratorCrash(ErrMsg); in runManyPasses()
/external/llvm/utils/not/
Dnot.cpp18 std::string ErrMsg; in main() local
20 &ErrMsg); in main()
22 errs() << "Error: " << ErrMsg << "\n"; in main()
/external/llvm/include/llvm/Bitcode/
DReaderWriter.h35 std::string *ErrMsg = 0);
44 std::string *ErrMsg = 0);
53 std::string *ErrMsg = 0);
59 std::string *ErrMsg = 0);
/external/llvm/lib/Linker/
DLinkArchives.cpp113 std::string ErrMsg; in LinkInArchive() local
115 Archive::OpenAndLoadSymbols(Filename, Context, &ErrMsg)); in LinkInArchive()
121 "': " + ErrMsg); in LinkInArchive()
144 if (!arch->findModulesDefiningSymbols(UndefinedSymbols, Modules, &ErrMsg)) in LinkInArchive()
146 "': " + ErrMsg); in LinkInArchive()
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp671 std::string ErrMsg; in CreateUbiViz() local
673 llvm::sys::Path Dir = llvm::sys::Path::GetTemporaryDirectory(&ErrMsg); in CreateUbiViz()
674 if (!ErrMsg.empty()) in CreateUbiViz()
679 Filename.makeUnique(true,&ErrMsg); in CreateUbiViz()
681 if (!ErrMsg.empty()) in CreateUbiViz()
687 Stream.reset(new llvm::raw_fd_ostream(Filename.c_str(), ErrMsg)); in CreateUbiViz()
689 if (!ErrMsg.empty()) in CreateUbiViz()
741 std::string ErrMsg; in ~UbigraphViz() local
748 if (llvm::sys::Program::ExecuteAndWait(Ubiviz, &args[0],0,0,0,0,&ErrMsg)) { in ~UbigraphViz()
749 llvm::errs() << "Error viewing graph: " << ErrMsg << "\n"; in ~UbigraphViz()

12