From 7ca0645c80df06492c65d6b8fc5b28258bb4c4b2 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 11 Aug 2016 10:50:01 +0000 Subject: [PATCH] [Core] Retire addReplacement() member function. llvm-svn: 278327 --- lld/include/lld/Core/SymbolTable.h | 3 --- lld/lib/Core/SymbolTable.cpp | 5 ----- 2 files changed, 8 deletions(-) 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. -- 2.7.4