forked from OSchip/llvm-project
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:
parent
5f50854186
commit
7b287eea22
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue