[llvm-commits] [llvm] r163655 - /llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h
Chad Rosier
mcrosier at apple.com
Tue Sep 11 16:03:44 PDT 2012
Author: mcrosier
Date: Tue Sep 11 18:03:44 2012
New Revision: 163655
URL: http://llvm.org/viewvc/llvm-project?rev=163655&view=rev
Log:
Add a few virtual functions to the abstract MCParsedAsmOperand class.
Modified:
llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h
Modified: llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h?rev=163655&r1=163654&r2=163655&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h (original)
+++ llvm/trunk/include/llvm/MC/MCParser/MCParsedAsmOperand.h Tue Sep 11 18:03:44 2012
@@ -23,6 +23,11 @@
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.
More information about the llvm-commits
mailing list