[lld] r194671 - Terminate if there are un-mergeable duplicate atoms.
Rui Ueyama
ruiu at google.com
Wed Nov 13 22:39:32 PST 2013
Author: ruiu
Date: Thu Nov 14 00:39:31 2013
New Revision: 194671
URL: http://llvm.org/viewvc/llvm-project?rev=194671&view=rev
Log:
Terminate if there are un-mergeable duplicate atoms.
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=194671&r1=194670&r2=194671&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Thu Nov 14 00:39:31 2013
@@ -234,6 +234,8 @@ void SymbolTable::addByName(const Atom &
break;
case NCR_Error:
llvm::errs() << "SymbolTable: error while merging " << name << "\n";
+ llvm::report_fatal_error("duplicate symbol error");
+ break;
}
if (useNew) {
More information about the llvm-commits
mailing list