forked from OSchip/llvm-project
Slightly better diagnostics on duplicate symbols.
llvm-svn: 171528
This commit is contained in:
parent
a2c9727810
commit
7f693c50db
|
@ -156,6 +156,15 @@ void SymbolTable::addByName(const Atom & newAtom) {
|
|||
useNew = true;
|
||||
break;
|
||||
case MCR_Error:
|
||||
llvm::errs() << "Duplicate symbols: "
|
||||
<< existing->name()
|
||||
<< ":"
|
||||
<< existing->file().path()
|
||||
<< " and "
|
||||
<< newAtom.name()
|
||||
<< ":"
|
||||
<< newAtom.file().path()
|
||||
<< "\n";
|
||||
llvm::report_fatal_error("duplicate symbol error");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue