From 2fb7e10d115d6121c5b1215bce0eda1c7a8c599c Mon Sep 17 00:00:00 2001
From: Peter Zotov <whitequark@whitequark.org>
Date: Mon, 21 Jan 2013 15:58:50 +0400
Subject: [PATCH 1/2] Fix error message in LLVMTargetMachineEmitToFile.

---
 lib/Target/TargetMachineC.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp
index 1e4c195..69478ea 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 EmitToFile passes not found";
     *ErrorMessage = strdup(error.c_str());
     return true;
   }
-- 
1.7.10.4

