Home | History | Annotate | Download | only in lto

Lines Matching refs:errMsg

91 bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg)
94 if(mod->getLLVVMModule()->MaterializeAllPermanently(&errMsg))
97 bool ret = _linker.LinkInModule(mod->getLLVVMModule(), &errMsg);
107 bool LTOCodeGenerator::setDebugInfo(lto_debug_model debug, std::string& errMsg)
118 errMsg = "unknown debug format";
124 std::string& errMsg)
133 errMsg = "unknown pic model";
149 std::string &errMsg) {
150 if (determineTarget(errMsg))
161 errMsg = "could not open bitcode file for writing: ";
162 errMsg += path;
171 errMsg = "could not write bitcode file: ";
172 errMsg += path;
182 bool LTOCodeGenerator::compile_to_file(const char** name, std::string& errMsg)
186 if ( uniqueObjPath.createTemporaryFileOnDisk(false, &errMsg) ) {
194 tool_output_file objFile(uniqueObjPath.c_str(), errMsg);
195 if (!errMsg.empty())
197 genResult = this->generateObjectFile(objFile.os(), errMsg);
214 const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
217 if (compile_to_file(&name, errMsg))
226 errMsg = ec.message();
241 bool LTOCodeGenerator::determineTarget(std::string& errMsg)
249 const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
364 std::string &errMsg) {
365 if ( this->determineTarget(errMsg) )
402 errMsg = "target file type not supported";