diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-01 13:24:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-01 13:24:25 +0000 |
commit | f2b88ce2fd0d204b981f2c6cc70f8112f563fd7c (patch) | |
tree | 0b5d21dc57fa71aa073667a661e53b3e26763381 /include/llvm/MC/MCAsmLayout.h | |
parent | b378cacf1de326bfba3c784b6d6d848fce6c7ae0 (diff) | |
download | llvm-f2b88ce2fd0d204b981f2c6cc70f8112f563fd7c.tar.gz llvm-f2b88ce2fd0d204b981f2c6cc70f8112f563fd7c.tar.bz2 llvm-f2b88ce2fd0d204b981f2c6cc70f8112f563fd7c.tar.xz |
Move getBaseSymbol somewhere the COFF writer can use.
I will use it there in a second.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index d942e273a4..f048e34671 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -17,6 +17,7 @@ namespace llvm { class MCAssembler; class MCFragment; class MCSectionData; +class MCSymbol; class MCSymbolData; /// Encapsulates the layout of an assembly file at a particular point in time. @@ -108,6 +109,9 @@ public: /// \brief Variant that reports a fatal error if the offset is not computable. uint64_t getSymbolOffset(const MCSymbolData *SD) const; + /// \brief If this symbol is equivalent to A + Constant, return A. + const MCSymbol *getBaseSymbol(const MCSymbol &Symbol) const; + /// @} }; |