diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 02:57:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 02:57:26 +0000 |
commit | ffd902bfb743f0564c8f7689c49403074b6f694d (patch) | |
tree | 6dc49fb579a5b784c052b17c74cb58009f216fc2 /include/llvm/MC/MCAsmLayout.h | |
parent | cc10244d7725f191bdc91cd62befff0c97257c7b (diff) | |
download | external_llvm-ffd902bfb743f0564c8f7689c49403074b6f694d.zip external_llvm-ffd902bfb743f0564c8f7689c49403074b6f694d.tar.gz external_llvm-ffd902bfb743f0564c8f7689c49403074b6f694d.tar.bz2 |
Add a getSymbolOffset method and use it in the ELF writer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120977 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 2cde06b..cad7664 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -133,6 +133,10 @@ public: /// layout. uint64_t getSymbolAddress(const MCSymbolData *SD) const; + /// \brief Get the offset of the given symbol, as computed in the current + /// layout. + uint64_t getSymbolOffset(const MCSymbolData *SD) const; + /// @} }; |