/external/swiftshader/third_party/LLVM/lib/Archive/ |
D | ArchiveWriter.cpp | 159 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() 208 std::string* ErrMsg in writeMember() argument 222 if (ErrMsg) in writeMember() 223 *ErrMsg = ec.message(); in writeMember() 238 GetBitcodeSymbols(data, fSize, FullMemberName, Context, symbols, ErrMsg); in writeMember() 258 if (ErrMsg) in writeMember() 259 *ErrMsg = "Can't parse bitcode member: " + member.getPath().str() in writeMember() [all …]
|
D | Archive.cpp | 69 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/swiftshader/third_party/LLVM/tools/llvm-ar/ |
D | llvm-ar.cpp | 278 std::set<sys::Path>& result, std::string* ErrMsg) { in recurseDirectories() argument 282 if (path.getDirectoryContents(content, ErrMsg)) in recurseDirectories() 289 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg); in recurseDirectories() 294 if (recurseDirectories(*I, moreResults, ErrMsg)) in recurseDirectories() 308 bool buildPaths(bool checkExistence, std::string* ErrMsg) { in buildPaths() argument 324 if (recurseDirectories(aPath, dirpaths, ErrMsg)) in buildPaths() 352 bool doPrint(std::string* ErrMsg) { in doPrint() argument 353 if (buildPaths(false, ErrMsg)) in doPrint() 404 doDisplayTable(std::string* ErrMsg) { in doDisplayTable() argument 405 if (buildPaths(false, ErrMsg)) in doDisplayTable() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-ld/ |
D | llvm-ld.cpp | 265 std::string &ErrMsg ) { in GenerateAssembly() argument 282 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); in GenerateAssembly() 289 std::string& ErrMsg) { in GenerateCFile() argument 304 return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); in GenerateCFile() 329 std::string& ErrMsg) { in GenerateNative() argument 403 gcc, &Args[0], const_cast<const char **>(clean_env), 0, 0, 0, &ErrMsg); in GenerateNative() 417 std::string ErrMsg; in EmitShellScript() local 423 if (0 != sys::CopyFile(sys::Path(OutputFilename), llvmstub, &ErrMsg)) in EmitShellScript() 424 PrintAndExit(ErrMsg, M); in EmitShellScript() 626 std::string ErrMsg; in main() local [all …]
|
/external/llvm/tools/obj2yaml/ |
D | Error.h | 36 Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} in Obj2YamlError() argument 37 Obj2YamlError(obj2yaml_error C, std::string ErrMsg) in Obj2YamlError() argument 38 : ErrMsg(std::move(ErrMsg)), Code(C) {} in Obj2YamlError() 40 const std::string &getErrorMessage() const { return ErrMsg; } in getErrorMessage() 44 std::string ErrMsg;
|
/external/swiftshader/third_party/LLVM/lib/Support/Unix/ |
D | Program.inc | 105 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 …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | GraphWriter.cpp | 56 std::string ErrMsg; in DisplayGraph() local 66 if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,0,&ErrMsg)) { in DisplayGraph() 67 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 91 &args[0],0,0,0,0,&ErrMsg)) { in DisplayGraph() 92 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 156 if (sys::Program::ExecuteAndWait(prog, &args[0], 0, 0, 0, 0, &ErrMsg)) { in DisplayGraph() 157 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() 169 ErrMsg.clear(); in DisplayGraph() 171 if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,0,&ErrMsg)) in DisplayGraph() 172 errs() << "Error: " << ErrMsg << "\n"; in DisplayGraph() [all …]
|
D | Program.cpp | 31 std::string* ErrMsg) { in ExecuteAndWait() argument 33 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteAndWait() 34 return prg.Wait(path, secondsToWait, ErrMsg); in ExecuteAndWait() 45 std::string* ErrMsg) { in ExecuteNoWait() argument 47 prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg); in ExecuteNoWait()
|
/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVError.h | 51 #define SPIRVCK(Condition,ErrCode,ErrMsg) \ argument 52 getErrorLog().checkError(Condition, SPIRVEC_##ErrCode, std::string()+ErrMsg,\ 56 #define SPIRVCKRT(Condition,ErrCode,ErrMsg) \ argument 58 std::string()+ErrMsg, #Condition, __FILE__, __LINE__))\ 81 SPIRVErrorCode getError(std::string& ErrMsg) { in getError() argument 82 ErrMsg = ErrorMsg; in getError() 85 void setError(SPIRVErrorCode ErrCode, const std::string& ErrMsg) { in setError() argument 87 ErrorMsg = ErrMsg; in setError()
|
/external/llvm/lib/Support/Unix/ |
D | Program.inc | 99 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) { 112 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " 119 MakeErrMsg(ErrMsg, "Cannot dup2"); 128 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg, 142 return MakeErrMsg(ErrMsg, "Cannot dup2", Err); 183 unsigned memoryLimit, std::string *ErrMsg) { 185 if (ErrMsg) 186 *ErrMsg = std::string("Executable \"") + Program.str() + 216 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) || 217 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions)) [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Program.inc | 99 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) { 112 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " 119 MakeErrMsg(ErrMsg, "Cannot dup2"); 128 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg, 142 return MakeErrMsg(ErrMsg, "Cannot dup2", Err); 183 unsigned memoryLimit, std::string *ErrMsg) { 185 if (ErrMsg) 186 *ErrMsg = std::string("Executable \"") + Program.str() + 216 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) || 217 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions)) [all …]
|
/external/llvm/lib/Support/ |
D | GraphWriter.cpp | 83 std::string &ErrMsg) { in ExecGraphViewer() argument 87 &ErrMsg)) { in ExecGraphViewer() 88 errs() << "Error: " << ErrMsg << "\n"; in ExecGraphViewer() 94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); in ExecGraphViewer() 138 std::string ErrMsg; in DisplayGraph() local 152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph() 174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); in DisplayGraph() 237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) in DisplayGraph() [all …]
|
D | Program.cpp | 28 unsigned memoryLimit, std::string *ErrMsg); 32 unsigned memoryLimit, std::string *ErrMsg, in ExecuteAndWait() argument 35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait() 39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); in ExecuteAndWait() 51 unsigned memoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument 56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Program.cpp | 28 unsigned memoryLimit, std::string *ErrMsg); 32 unsigned memoryLimit, std::string *ErrMsg, in ExecuteAndWait() argument 35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait() 39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); in ExecuteAndWait() 51 unsigned memoryLimit, std::string *ErrMsg, in ExecuteNoWait() argument 56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PathV1.h | 112 static Path GetTemporaryDirectory(std::string* ErrMsg = 0); 439 std::string* ErrMsg ///< Optional place to return an error message. 498 bool makeUnique( bool reuse_current /*= true*/, std::string* ErrMsg ); 513 bool makeReadableOnDisk(std::string* ErrMsg = 0); 518 bool makeWriteableOnDisk(std::string* ErrMsg = 0); 524 bool makeExecutableOnDisk(std::string* ErrMsg = 0); 547 std::string* ErrMsg = 0 ///< Optional place to put error messages. 558 std::string* ErrMsg = 0 ///< Optional place to put error messages. 573 std::string* ErrMsg = 0 ///< Optional place to put error messages 581 bool renamePathOnDisk(const Path& newName, std::string* ErrMsg); [all …]
|
D | IRReader.h | 40 std::string ErrMsg; in getLazyIRModule() local 41 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg); in getLazyIRModule() 43 Err = SMDiagnostic(Buffer->getBufferIdentifier(), ErrMsg); in getLazyIRModule() 80 std::string ErrMsg; in ParseIR() local 81 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg); in ParseIR() 83 Err = SMDiagnostic(Buffer->getBufferIdentifier(), ErrMsg); in ParseIR()
|
D | Program.h | 79 std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string 100 std::string* ErrMsg ///< If non-zero, provides a pointer to a string 110 ( std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string 141 std::string* ErrMsg = 0); 150 std::string* ErrMsg = 0);
|
/external/swiftshader/third_party/LLVM/lib/Support/Windows/ |
D | Program.inc | 97 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 …]
|
D | Memory.inc | 29 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: ");
|
D | Path.inc | 199 Path::GetTemporaryDirectory(std::string* ErrMsg) { 205 if (ErrMsg) 206 *ErrMsg = "Can't determine temporary directory"; 472 bool Path::makeReadableOnDisk(std::string* ErrMsg) { 477 bool Path::makeWriteableOnDisk(std::string* ErrMsg) { 486 MakeErrMsg(ErrMsg, std::string(path) + ": Can't make file writable: "); 493 bool Path::makeExecutableOnDisk(std::string* ErrMsg) { 499 Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const { 502 MakeErrMsg(ErrMsg, path + ": can't get status of file"); 507 if (ErrMsg) [all …]
|
/external/clang/lib/Driver/ |
D | Job.cpp | 231 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument 242 /*memoryLimit*/ 0, ErrMsg, in Execute() 260 if (ErrMsg) in Execute() 261 *ErrMsg = EC.message(); in Execute() 269 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed); in Execute() 294 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, in Execute() argument 296 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed); in Execute() 301 if (ErrMsg) in Execute() 302 ErrMsg->clear(); in Execute() 309 int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed); in Execute() [all …]
|
/external/llvm/lib/DebugInfo/PDB/ |
D | GenericError.cpp | 53 ErrMsg = "PDB Error: "; in GenericError() 56 ErrMsg += EC.message() + " "; in GenericError() 58 ErrMsg += Context; in GenericError() 61 void GenericError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log() 63 const std::string &GenericError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
|
/external/llvm/lib/DebugInfo/PDB/DIA/ |
D | DIAError.cpp | 45 ErrMsg = "DIA Error: "; in DIAError() 48 ErrMsg += EC.message() + " "; in DIAError() 50 ErrMsg += Context; in DIAError() 53 void DIAError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log() 55 const std::string &DIAError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | CodeViewError.cpp | 53 ErrMsg = "CodeView Error: "; in CodeViewError() 56 ErrMsg += EC.message() + " "; in CodeViewError() 58 ErrMsg += Context; in CodeViewError() 61 void CodeViewError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log() 63 const std::string &CodeViewError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
|
/external/llvm/lib/DebugInfo/PDB/Raw/ |
D | RawError.cpp | 53 ErrMsg = "Native PDB Error: "; in RawError() 56 ErrMsg += EC.message() + " "; in RawError() 58 ErrMsg += Context; in RawError() 61 void RawError::log(raw_ostream &OS) const { OS << ErrMsg << "\n"; } in log() 63 const std::string &RawError::getErrorMessage() const { return ErrMsg; } in getErrorMessage()
|