[llvm] r176794 - Correct this error message, and most importantly make it distinct from the
Nick Lewycky
nicholas at mxc.ca
Sun Mar 10 15:01:45 PDT 2013
Author: nicholas
Date: Sun Mar 10 17:01:44 2013
New Revision: 176794
URL: http://llvm.org/viewvc/llvm-project?rev=176794&view=rev
Log:
Correct this error message, and most importantly make it distinct from the
error above. Based on a patch by Peter Zotov!
Modified:
llvm/trunk/lib/Target/TargetMachineC.cpp
Modified: llvm/trunk/lib/Target/TargetMachineC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachineC.cpp?rev=176794&r1=176793&r2=176794&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetMachineC.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachineC.cpp Sun Mar 10 17:01:44 2013
@@ -184,7 +184,7 @@ LLVMBool LLVMTargetMachineEmitToFile(LLV
}
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;
}
More information about the llvm-commits
mailing list