summaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachineC.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-03-10 22:01:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-03-10 22:01:44 +0000
commitf3a64c00c189c1961a49aed9ce6f21e133bdde03 (patch)
tree143d7b5b3a4b64376d0f3d715bb386d14f63b8a8 /lib/Target/TargetMachineC.cpp
parent0ebc084132cbf4ebebdb6c931ef42f97e3ff5fe1 (diff)
downloadllvm-f3a64c00c189c1961a49aed9ce6f21e133bdde03.tar.gz
llvm-f3a64c00c189c1961a49aed9ce6f21e133bdde03.tar.bz2
llvm-f3a64c00c189c1961a49aed9ce6f21e133bdde03.tar.xz
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
Diffstat (limited to 'lib/Target/TargetMachineC.cpp')
-rw-r--r--lib/Target/TargetMachineC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp
index 1e4c195b0f..79f74bd661 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;
}