forked from OSchip/llvm-project
[Core] Retire addReplacement() member function.
llvm-svn: 278327
This commit is contained in:
parent
3add5ec690
commit
7ca0645c80
|
@ -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 *);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue