Slightly better diagnostics on duplicate symbols.

llvm-svn: 171528
This commit is contained in:
Michael J. Spencer 2013-01-04 21:17:51 +00:00
parent a2c9727810
commit 7f693c50db
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}