Home | History | Annotate | Download | only in lto

Lines Matching full:errmsg

92 bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg)
95 if(mod->getLLVVMModule()->MaterializeAllPermanently(&errMsg))
98 bool ret = _linker.LinkInModule(mod->getLLVVMModule(), &errMsg);
108 bool LTOCodeGenerator::setDebugInfo(lto_debug_model debug, std::string& errMsg)
119 errMsg = "unknown debug format";
125 std::string& errMsg)
134 errMsg = "unknown pic model";
150 std::string &errMsg) {
151 if (determineTarget(errMsg))
162 errMsg = "could not open bitcode file for writing: ";
163 errMsg += path;
172 errMsg = "could not write bitcode file: ";
173 errMsg += path;
183 bool LTOCodeGenerator::compile_to_file(const char** name, std::string& errMsg)
187 if ( uniqueObjPath.createTemporaryFileOnDisk(false, &errMsg) ) {
195 tool_output_file objFile(uniqueObjPath.c_str(), errMsg);
196 if (!errMsg.empty())
198 genResult = this->generateObjectFile(objFile.os(), errMsg);
215 const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
218 if (compile_to_file(&name, errMsg))
227 errMsg = ec.message();
242 bool LTOCodeGenerator::determineTarget(std::string& errMsg)
250 const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
366 std::string &errMsg) {
367 if ( this->determineTarget(errMsg) )
404 errMsg = "target file type not supported";