summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/Core/SymbolTable.h3
-rw-r--r--lld/lib/Core/SymbolTable.cpp5
2 files changed, 0 insertions, 8 deletions
diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h
index b11304d2bdc..5298df559fe 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<const UndefinedAtom *> 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 76fee1aecbd..efa25d67e03 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.
OpenPOWER on IntegriCloud