diff options
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
| -rw-r--r-- | lld/lib/Core/Resolver.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index 8b426fae87f..7e0d2e2895b 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -110,11 +110,8 @@ void Resolver::doDefinedAtom(const DefinedAtom &atom) { // 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 |

