mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
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
d19f3cb20c
commit
190c2ac6e9
@ -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
Block a user