From: Davide Italiano Date: Thu, 11 Aug 2016 10:50:01 +0000 (+0000) Subject: [Core] Retire addReplacement() member function. X-Git-Tag: llvmorg-4.0.0-rc1~12768 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ca0645c80df06492c65d6b8fc5b28258bb4c4b2;p=platform%2Fupstream%2Fllvm.git [Core] Retire addReplacement() member function. llvm-svn: 278327 --- diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h index b11304d..5298df5 100644 --- a/lld/include/lld/Core/SymbolTable.h +++ b/lld/include/lld/Core/SymbolTable.h @@ -56,9 +56,6 @@ public: /// @brief returns vector of remaining UndefinedAtoms std::vector undefines(); - /// @brief add atom to replacement table - void addReplacement(const Atom *replaced, const Atom *replacement); - /// @brief if atom has been coalesced away, return replacement, else return atom const Atom *replacement(const Atom *); diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 76fee1a..efa25d6 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -271,11 +271,6 @@ bool SymbolTable::isDefined(StringRef sym) { return false; } -void SymbolTable::addReplacement(const Atom *replaced, - const Atom *replacement) { - _replacedAtoms[replaced] = replacement; -} - const Atom *SymbolTable::replacement(const Atom *atom) { // Find the replacement for a given atom. Atoms in _replacedAtoms // may be chained, so find the last one.