diff options
author | Rui Ueyama <ruiu@google.com> | 2013-11-13 23:23:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-11-13 23:23:38 +0000 |
commit | bcccb5db2e88533941c0c63a8693bb71ca0ac318 (patch) | |
tree | b8c4006b0bb9bad60d9ffb53f627febe3679f17b | |
parent | f347e7533fefcd318a1897f649a95239758610e1 (diff) | |
download | bcm5719-llvm-bcccb5db2e88533941c0c63a8693bb71ca0ac318.tar.gz bcm5719-llvm-bcccb5db2e88533941c0c63a8693bb71ca0ac318.zip |
Show error message if two atoms are not mergeable.
llvm-svn: 194620
-rw-r--r-- | lld/lib/Core/SymbolTable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 369a82d816e..e3349df6fe4 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -232,9 +232,13 @@ void SymbolTable::addByName(const Atom & newAtom) { } } break; + case NCR_Error: + llvm::errs() << "SymbolTable: error while merging " << name << "\n"; + // FALLTHRU default: llvm::report_fatal_error("SymbolTable::addByName(): unhandled switch clause"); } + if (useNew) { // Update name table to use new atom. _nameTable[name] = &newAtom; |