summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/MC/MCAsmLayout.h')
-rw-r--r--llvm/include/llvm/MC/MCAsmLayout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCAsmLayout.h b/llvm/include/llvm/MC/MCAsmLayout.h
index 3058b7b4874..d942e273a4c 100644
--- a/llvm/include/llvm/MC/MCAsmLayout.h
+++ b/llvm/include/llvm/MC/MCAsmLayout.h
@@ -102,6 +102,10 @@ public:
/// \brief Get the offset of the given symbol, as computed in the current
/// layout.
+ /// \result True on success.
+ bool getSymbolOffset(const MCSymbolData *SD, uint64_t &Val) const;
+
+ /// \brief Variant that reports a fatal error if the offset is not computable.
uint64_t getSymbolOffset(const MCSymbolData *SD) const;
/// @}
OpenPOWER on IntegriCloud