improve warning message to at least say what the triples are.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-12-29 22:41:18 +00:00
parent b4aec92453
commit e0f6db369d

View File

@ -1219,7 +1219,9 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
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()) {