mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Correct this error message, and most importantly make it distinct from the
error above. Based on a patch by Peter Zotov! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ebc084132
commit
f3a64c00c1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user