1
0
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:
Nick Lewycky 2013-03-10 22:01:44 +00:00
parent d19f3cb20c
commit 190c2ac6e9

View File

@ -184,7 +184,7 @@ LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
} }
if (TM->addPassesToEmitFile(pass, destf, ft)) { 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()); *ErrorMessage = strdup(error.c_str());
return true; return true;
} }