mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
MC: Use MCSymbol in MCAsmLayout::getSymbolOffset(), NFC
Continue to canonicalize on MCSymbol instead of MCSymbolData when both are needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,10 +99,10 @@ public:
|
||||
/// \brief Get the offset of the given symbol, as computed in the current
|
||||
/// layout.
|
||||
/// \return True on success.
|
||||
bool getSymbolOffset(const MCSymbolData *SD, uint64_t &Val) const;
|
||||
bool getSymbolOffset(const MCSymbol &S, uint64_t &Val) const;
|
||||
|
||||
/// \brief Variant that reports a fatal error if the offset is not computable.
|
||||
uint64_t getSymbolOffset(const MCSymbolData *SD) const;
|
||||
uint64_t getSymbolOffset(const MCSymbol &S) const;
|
||||
|
||||
/// \brief If this symbol is equivalent to A + Constant, return A.
|
||||
const MCSymbol *getBaseSymbol(const MCSymbol &Symbol) const;
|
||||
|
Reference in New Issue
Block a user