Home | History | Annotate | Download | only in lto

Lines Matching refs:errMsg

83 bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg) {
84 bool ret = _linker.LinkInModule(mod->getLLVVMModule(), &errMsg);
94 std::string& errMsg) {
108 std::string& errMsg) {
120 std::string &errMsg) {
121 if (determineTarget(errMsg))
132 errMsg = "could not open bitcode file for writing: ";
133 errMsg += path;
142 errMsg = "could not write bitcode file: ";
143 errMsg += path;
152 bool LTOCodeGenerator::compile_to_file(const char** name, std::string& errMsg) {
155 if ( uniqueObjPath.createTemporaryFileOnDisk(false, &errMsg) ) {
163 tool_output_file objFile(uniqueObjPath.c_str(), errMsg);
164 if (!errMsg.empty())
167 genResult = this->generateObjectFile(objFile.os(), errMsg);
185 const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg) {
187 if (compile_to_file(&name, errMsg))
196 errMsg = ec.message();
211 bool LTOCodeGenerator::determineTarget(std::string& errMsg) {
218 const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
335 std::string &errMsg) {
336 if ( this->determineTarget(errMsg) )
377 errMsg = "target file type not supported";