[Core] Retire addReplacement() member function.

llvm-svn: 278327
This commit is contained in:
Davide Italiano 2016-08-11 10:50:01 +00:00
parent 3add5ec690
commit 7ca0645c80
2 changed files with 0 additions and 8 deletions

View File

@ -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 *);

View File

@ -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.