[ms-inline asm] Add support for the TYPE operator.
[oota-llvm.git] / include / llvm / MC / MCParser / MCParsedAsmOperand.h
index 89b0a1f47b6fbfa970bdd876acfb7e2930a32517..60e7887a53963925478a172996d9bbded5532b8e 100644 (file)
@@ -64,6 +64,12 @@ public:
   /// getEndLoc - Get the location of the last token of this operand.
   virtual SMLoc getEndLoc() const = 0;
 
+  /// needAsmRewrite - AsmRewrites happen in both the target-independent and
+  /// target-dependent parsers.  The target-independent parser calls this
+  /// function to determine if the target-dependent parser has already taken
+  /// care of the rewrites.  Only valid when parsing MS-style inline assembly.
+  virtual bool needAsmRewrite() const { return true; }
+
   /// isOffsetOf - Do we need to emit code to get the offset of the variable,
   /// rather then the value of the variable?   Only valid when parsing MS-style
   /// inline assembly.