mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
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:
parent
b4aec92453
commit
e0f6db369d
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user