aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-15 19:28:38 +0000
committerChris Lattner <sabre@nondot.org>2010-01-15 19:28:38 +0000
commitb4307b33705ef9e660db640b2f70d6246aa51165 (patch)
tree9e5e2dfb75bf69750dcd137e935b3b90fab31b0b /include
parent1f19f0f31dace5d145fecbe1f0f3fea4fb9ae813 (diff)
extend MCAsmParser::ParseExpression and ParseParenExpression
to return range information for subexpressions. Use this to provide range info for several new X86Operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmParser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/MC/MCAsmParser.h b/include/llvm/MC/MCAsmParser.h
index d530093380..a3c10f9c2f 100644
--- a/include/llvm/MC/MCAsmParser.h
+++ b/include/llvm/MC/MCAsmParser.h
@@ -55,15 +55,17 @@ public:
/// @param Res - The value of the expression. The result is undefined
/// on error.
/// @result - False on success.
- virtual bool ParseExpression(const MCExpr *&Res) = 0;
-
+ virtual bool ParseExpression(const MCExpr *&Res,
+ SMLoc &StartLoc, SMLoc &EndLoc) = 0;
+ bool ParseExpression(const MCExpr *&Res);
+
/// ParseParenExpression - Parse an arbitrary expression, assuming that an
/// initial '(' has already been consumed.
///
/// @param Res - The value of the expression. The result is undefined
/// on error.
/// @result - False on success.
- virtual bool ParseParenExpression(const MCExpr *&Res) = 0;
+ virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
/// ParseAbsoluteExpression - Parse an expression which must evaluate to an
/// absolute value.