[lld] r231345 - Remove dead code.

Rui Ueyama ruiu at google.com
Wed Mar 4 18:58:14 PST 2015


Author: ruiu
Date: Wed Mar  4 20:58:13 2015
New Revision: 231345

URL: http://llvm.org/viewvc/llvm-project?rev=231345&view=rev
Log:
Remove dead code.

This hook is called from one of the hottest loops in LLD and does nothing.

Modified:
    lld/trunk/include/lld/Core/LinkingContext.h
    lld/trunk/lib/Core/SymbolTable.cpp

Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=231345&r1=231344&r2=231345&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Wed Mar  4 20:58:13 2015
@@ -219,11 +219,6 @@ public:
   std::vector<std::unique_ptr<Node>> &getNodes() { return _nodes; }
   const std::vector<std::unique_ptr<Node>> &getNodes() const { return _nodes; }
 
-  /// Notify the LinkingContext when an atom is added to the symbol table.
-  /// This is an opportunity for flavor specific work to be done.
-  virtual void notifySymbolTableAdd(const Atom *atom) const {
-  }
-
   /// Notify the LinkingContext when the symbol table found a name collision.
   /// The useNew parameter specifies which the symbol table plans to keep,
   /// but that can be changed by the LinkingContext.  This is also an

Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=231345&r1=231344&r2=231345&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Wed Mar  4 20:58:13 2015
@@ -139,7 +139,6 @@ bool SymbolTable::addByName(const Atom &
   const Atom *existing = findByName(name);
   if (existing == nullptr) {
     // Name is not in symbol table yet, add it associate with this atom.
-    _context.notifySymbolTableAdd(&newAtom);
     _nameTable[name] = &newAtom;
     return true;
   }





More information about the llvm-commits mailing list