diff options
| -rw-r--r-- | lld/lib/Core/SymbolTable.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 8707fbeb421..926f656a935 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -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; } |

