summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmExpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mc/AsmExpr.h')
-rw-r--r--llvm/tools/llvm-mc/AsmExpr.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmExpr.h b/llvm/tools/llvm-mc/AsmExpr.h
index be26b46b4cd..e8650e468f2 100644
--- a/llvm/tools/llvm-mc/AsmExpr.h
+++ b/llvm/tools/llvm-mc/AsmExpr.h
@@ -16,6 +16,7 @@
namespace llvm {
class MCContext;
class MCSymbol;
+class MCValue;
class AsmExpr {
public:
@@ -39,10 +40,17 @@ public:
/// EvaluateAsAbsolute - Try to evaluate the expression to an absolute value.
///
- /// @param Res - The absolute value if evaluation succeeds.
+ /// @param Res - The absolute value, if evaluation succeeds.
/// @result - True on success.
bool EvaluateAsAbsolute(MCContext &Ctx, int64_t &Res) const;
+ /// EvaluateAsRelocatable - Try to evaluate the expression to a relocatable
+ /// value.
+ ///
+ /// @param Res - The relocatable value, if evaluation succeeds.
+ /// @result - True on success.
+ bool EvaluateAsRelocatable(MCContext &Ctx, MCValue &Res) const;
+
static bool classof(const AsmExpr *) { return true; }
};
OpenPOWER on IntegriCloud