mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
include the module identifier when emitting this warning, PR8865.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7bad77606
commit
a797ee0210
@ -1218,10 +1218,13 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
|
||||
Src->getDataLayout() != Dest->getDataLayout())
|
||||
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: '"
|
||||
<< Src->getTargetTriple() << "' and '" << Dest->getTargetTriple()
|
||||
<< "'\n";
|
||||
Dest->getTargetTriple() != Src->getTargetTriple()) {
|
||||
errs() << "WARNING: Linking two modules of different target triples: ";
|
||||
if (!Src->getModuleIdentifier().empty())
|
||||
errs() << Src->getModuleIdentifier() << ": ";
|
||||
errs() << "'" << Src->getTargetTriple() << "' and '"
|
||||
<< Dest->getTargetTriple() << "'\n";
|
||||
}
|
||||
|
||||
// Append the module inline asm string.
|
||||
if (!Src->getModuleInlineAsm().empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user