/external/llvm/bindings/go/llvm/ |
H A D | SupportBindings.h | 22 // stable C API and adds an extra ErrMsg parameter to retrieve the error 24 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg);
|
H A D | SupportBindings.cpp | 19 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg) { argument 22 *ErrMsg = static_cast<char *>(malloc(ErrMsgStr.size() + 1)); 23 memcpy(static_cast<void *>(*ErrMsg),
|
/external/llvm/lib/Support/Unix/ |
H A D | Unix.h | 51 /// This function builds an error message into \p ErrMsg using the \p prefix 59 std::string* ErrMsg, const std::string& prefix, int errnum = -1) { 60 if (!ErrMsg) 64 *ErrMsg = prefix + ": " + llvm::sys::StrError(errnum); 58 MakeErrMsg( std::string* ErrMsg, const std::string& prefix, int errnum = -1) argument
|
H A 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, FileAction [all...] |
H A D | Memory.inc | 181 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) {
|
/external/llvm/utils/not/ |
H A D | not.cpp | 42 std::string ErrMsg; local 44 &ErrMsg); 54 errs() << "Error: " << ErrMsg << "\n";
|
/external/llvm/lib/Support/ |
H A D | Program.cpp | 28 unsigned memoryLimit, std::string *ErrMsg); 32 unsigned memoryLimit, std::string *ErrMsg, 35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { 39 PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg); 51 unsigned memoryLimit, std::string *ErrMsg, 56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) 30 ExecuteAndWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned secondsToWait, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument 49 ExecuteNoWait(StringRef Program, const char **args, const char **envp, const StringRef **redirects, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) argument
|
H A D | GraphWriter.cpp | 83 std::string &ErrMsg) { 87 &ErrMsg)) { 88 errs() << "Error: " << ErrMsg << "\n"; 94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); 138 std::string ErrMsg; local 152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) 162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) 174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); 189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg); 237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) 81 ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args, StringRef Filename, bool wait, std::string &ErrMsg) argument [all...] |
/external/llvm/include/llvm/Support/ |
H A D | DynamicLibrary.h | 77 std::string *ErrMsg = nullptr) { 78 return !getPermanentLibrary(Filename, ErrMsg).isValid();
|
H A D | Memory.h | 99 /// \p ErrMsg [out] returns a string describing any error that occurred. 119 /// a null memory block and fills in *ErrMsg. 124 std::string *ErrMsg = nullptr); 131 /// in *ErrMsg. 133 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = nullptr); 143 static bool setExecutable(MemoryBlock &M, std::string *ErrMsg = nullptr); 148 static bool setWritable(MemoryBlock &M, std::string *ErrMsg = nullptr);
|
H A D | Signals.h | 33 bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = nullptr);
|
H A D | Program.h | 115 std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a 129 std::string *ErrMsg = nullptr, bool *ExecutionFailed = nullptr); 184 std::string *ErrMsg = nullptr ///< If non-zero, provides a pointer to a
|
/external/llvm/tools/bugpoint/ |
H A D | FindBugs.cpp | 34 std::string &ErrMsg) { 84 return debugCodeGeneratorCrash(ErrMsg); 102 debugCodeGeneratorCrash(ErrMsg); 33 runManyPasses(const std::vector<std::string> &AllPasses, std::string &ErrMsg) argument
|
H A D | BugDriver.cpp | 150 bool BugDriver::run(std::string &ErrMsg) { argument 154 return runManyPasses(PassesToRun, ErrMsg); 179 return debugCodeGeneratorCrash(ErrMsg); 191 return debugCodeGeneratorCrash(ErrMsg); 208 return debugCodeGeneratorCrash(ErrMsg); 215 return debugCodeGeneratorCrash(ErrMsg); 225 return debugCodeGeneratorCrash(ErrMsg);
|
H A D | OptimizerDriver.cpp | 235 std::string ErrMsg; local 238 Timeout, MemoryLimit, &ErrMsg); 255 outs() << "Execute failed: " << ErrMsg << "\n"; 257 outs() << "Crashed: " << ErrMsg << "\n";
|
/external/clang/lib/Driver/ |
H A D | Job.cpp | 218 int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, argument 229 /*memoryLimit*/ 0, ErrMsg, 247 if (ErrMsg) 248 *ErrMsg = EC.message(); 256 /*memoryLimit*/ 0, ErrMsg, ExecutionFailed); 281 int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg, argument 283 int PrimaryStatus = Command::Execute(Redirects, ErrMsg, ExecutionFailed); 287 // Clear ExecutionFailed and ErrMsg before falling back. 288 if (ErrMsg) 289 ErrMsg [all...] |
/external/llvm/lib/Support/Windows/ |
H A D | WindowsSupport.h | 47 inline bool MakeErrMsg(std::string* ErrMsg, const std::string& prefix) { argument 48 if (!ErrMsg) 57 *ErrMsg = prefix + ": " + buffer; 59 *ErrMsg = prefix + ": Unknown error"; 60 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
|
H A D | Memory.inc | 166 std::string *ErrMsg) { 171 if (EC != std::error_code() && ErrMsg) { 172 MakeErrMsg(ErrMsg, EC.message()); 177 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) { 181 MakeErrMsg(ErrMsg, EC.message()); 193 bool Memory::setWritable(MemoryBlock &M, std::string *ErrMsg) { 195 return MakeErrMsg(ErrMsg, "Cannot set memory to writeable"); 200 bool Memory::setExecutable(MemoryBlock &M, std::string *ErrMsg) { 202 return MakeErrMsg(ErrMsg, "Cannot set memory to executable");
|
H A D | Process.inc | 422 std::string ErrMsg; 423 MakeErrMsg(&ErrMsg, Msg); 424 report_fatal_error(ErrMsg);
|
/external/llvm/lib/CodeGen/ |
H A D | ParallelCG.cpp | 49 std::string ErrMsg; local 50 const Target *TheTarget = TargetRegistry::lookupTarget(TripleStr, ErrMsg); 52 report_fatal_error(Twine("Target not found: ") + ErrMsg);
|
/external/llvm/lib/ExecutionEngine/ |
H A D | SectionMemoryManager.cpp | 125 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) argument 134 if (ErrMsg) { 135 *ErrMsg = ec.message(); 147 if (ErrMsg) { 148 *ErrMsg = ec.message();
|
/external/llvm/lib/LTO/ |
H A D | LTOCodeGenerator.cpp | 178 std::string ErrMsg = "could not open bitcode file for writing: "; local 179 ErrMsg += Path; 180 emitError(ErrMsg); 189 std::string ErrMsg = "could not write bitcode file: "; local 190 ErrMsg += Path; 191 emitError(ErrMsg); 291 std::string ErrMsg; local 292 const Target *march = TargetRegistry::lookupTarget(TripleStr, ErrMsg); 294 emitError(ErrMsg); 595 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { argument [all...] |
/external/llvm/include/llvm/ExecutionEngine/ |
H A D | SectionMemoryManager.h | 74 bool finalizeMemory(std::string *ErrMsg = nullptr) override;
|
/external/llvm/tools/lli/ |
H A D | RemoteMemoryManager.h | 86 bool finalizeMemory(std::string *ErrMsg) override;
|
/external/clang/include/clang/Driver/ |
H A D | Job.h | 96 virtual int Execute(const StringRef **Redirects, std::string *ErrMsg, 134 int Execute(const StringRef **Redirects, std::string *ErrMsg,
|