aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/MC/MCParser/MCParsedAsmOperand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCParsedAsmOperand.h b/include/llvm/MC/MCParser/MCParsedAsmOperand.h
index 2556e5f27a..0e2d46eece 100644
--- a/include/llvm/MC/MCParser/MCParsedAsmOperand.h
+++ b/include/llvm/MC/MCParser/MCParsedAsmOperand.h
@@ -23,6 +23,11 @@ public:
MCParsedAsmOperand() {}
virtual ~MCParsedAsmOperand() {}
+ virtual bool isToken() const = 0;
+ virtual bool isImm() const = 0;
+ virtual bool isReg() const = 0;
+ virtual bool isMem() const = 0;
+
/// getStartLoc - Get the location of the first token of this operand.
virtual SMLoc getStartLoc() const = 0;
/// getEndLoc - Get the location of the last token of this operand.