Correct this error message, and most importantly make it distinct from the

error above. Based on a patch by Peter Zotov!

llvm-svn: 176794
This commit is contained in:
Nick Lewycky 2013-03-10 22:01:44 +00:00
parent 5f50854186
commit 7b287eea22
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
}
if (TM->addPassesToEmitFile(pass, destf, ft)) {
error = "No DataLayout in TargetMachine";
error = "TargetMachine can't emit a file of this type";
*ErrorMessage = strdup(error.c_str());
return true;
}