Add new merge-by-content Merge attribute for use by anonymous
constants and string literals which the linker should coalesce.
llvm-svn: 172495
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp
index 8b426fa..7e0d2e2 100644
--- a/lld/lib/Core/Resolver.cpp
+++ b/lld/lib/Core/Resolver.cpp
@@ -110,11 +110,8 @@
// add to list of known atoms
_atoms.push_back(&atom);
- // non-static atoms need extra handling
- if (atom.scope() != DefinedAtom::scopeTranslationUnit) {
- // tell symbol table about non-static atoms
- _symbolTable.add(atom);
- }
+ // tell symbol table
+ _symbolTable.add(atom);
if (_options.deadCodeStripping()) {
// add to set of dead-strip-roots, all symbols that