[ms-inline asm] Use parsePrimaryExpr in lieu of parseExpression if we need to
[oota-llvm.git] / include / llvm / MC / MCParser / MCAsmParser.h
index d7e3902ac478d0e6ac8fc5d5871fbf0d2aecefc3..601f8f7734b42efa6cf3cb648663455ba0886240 100644 (file)
@@ -151,6 +151,13 @@ public:
   virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
   bool parseExpression(const MCExpr *&Res);
 
+  /// parsePrimaryExpr - Parse a primary expression.
+  ///
+  /// @param Res - The value of the expression. The result is undefined
+  /// on error.
+  /// @result - False on success.
+  virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) = 0;
+
   /// parseParenExpression - Parse an arbitrary expression, assuming that an
   /// initial '(' has already been consumed.
   ///