From: Nick Lewycky Date: Sun, 10 Mar 2013 22:01:44 +0000 (+0000) Subject: Correct this error message, and most importantly make it distinct from the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3a64c00c189c1961a49aed9ce6f21e133bdde03;p=oota-llvm.git 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 --- diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp index 1e4c195b0f3..79f74bd6612 100644 --- a/lib/Target/TargetMachineC.cpp +++ b/lib/Target/TargetMachineC.cpp @@ -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; }