[llvm-commits] [llvm] r122632 - /llvm/trunk/lib/Linker/LinkModules.cpp

Chris Lattner sabre at nondot.org
Wed Dec 29 14:41:18 PST 2010


Author: lattner
Date: Wed Dec 29 16:41:18 2010
New Revision: 122632

URL: http://llvm.org/viewvc/llvm-project?rev=122632&view=rev
Log:
improve warning message to at least say what the triples are.

Modified:
    llvm/trunk/lib/Linker/LinkModules.cpp

Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=122632&r1=122631&r2=122632&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Wed Dec 29 16:41:18 2010
@@ -1219,7 +1219,9 @@
     errs() << "WARNING: Linking two modules of different data layouts!\n";
   if (!Src->getTargetTriple().empty() &&
       Dest->getTargetTriple() != Src->getTargetTriple())
-    errs() << "WARNING: Linking two modules of different target triples!\n";
+    errs() << "WARNING: Linking two modules of different target triples: '"
+           << Src->getTargetTriple() << "' and '" << Dest->getDataLayout()
+           << "'\n";
 
   // Append the module inline asm string.
   if (!Src->getModuleInlineAsm().empty()) {





More information about the llvm-commits mailing list