mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
MCAssembler: Simplify implementation of const variants of getSymbolData by calling one implementation from the other.
Code review feedback by Rafael Espindola on r207124. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ed33e08f3
commit
31494cb6c4
@ -1208,9 +1208,8 @@ public:
|
||||
}
|
||||
|
||||
MCSymbolData &getSymbolData(const MCSymbol &Symbol) {
|
||||
MCSymbolData *Entry = SymbolMap.lookup(&Symbol);
|
||||
assert(Entry && "Missing symbol data!");
|
||||
return *Entry;
|
||||
return const_cast<MCSymbolData &>(
|
||||
static_cast<const MCAssembler &>(*this).getSymbolData(Symbol));
|
||||
}
|
||||
|
||||
const MCSymbolData &getSymbolData(const MCSymbol &Symbol) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user