[llvm-commits] [lld] r171528 - /lld/trunk/lib/Core/SymbolTable.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Fri Jan 4 13:17:51 PST 2013
Author: mspencer
Date: Fri Jan 4 15:17:51 2013
New Revision: 171528
URL: http://llvm.org/viewvc/llvm-project?rev=171528&view=rev
Log:
Slightly better diagnostics on duplicate symbols.
Modified:
lld/trunk/lib/Core/SymbolTable.cpp
Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=171528&r1=171527&r2=171528&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Fri Jan 4 15:17:51 2013
@@ -156,6 +156,15 @@
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;
}
More information about the llvm-commits
mailing list