Correct this error message, and most importantly make it distinct from the
authorNick Lewycky <nicholas@mxc.ca>
Sun, 10 Mar 2013 22:01:44 +0000 (22:01 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 10 Mar 2013 22:01:44 +0000 (22:01 +0000)
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

lib/Target/TargetMachineC.cpp

index 1e4c195b0f344474e18f9bc4dfa1f123b50cc8aa..79f74bd66127a8b6396814325b21a761dc9d4409 100644 (file)
@@ -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;
   }