MC/AsmParser: Stop playing unsafe member function pointer calls, this isn't
[oota-llvm.git] / include / llvm / MC / MCParser / MCParsedAsmOperand.h
1 //===-- llvm/MC/MCParsedAsmOperand.h - Asm Parser Operand -------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_MC_MCASMOPERAND_H
11 #define LLVM_MC_MCASMOPERAND_H
12
13 namespace llvm {
14 class SMLoc;
15
16 /// MCParsedAsmOperand - This abstract class represents a source-level assembly
17 /// instruction operand.  It should be subclassed by target-specific code.  This
18 /// base class is used by target-independent clients and is the interface
19 /// between parsing an asm instruction and recognizing it.
20 class MCParsedAsmOperand {
21 public:  
22   MCParsedAsmOperand() {}
23   virtual ~MCParsedAsmOperand() {}
24   
25   /// getStartLoc - Get the location of the first token of this operand.
26   virtual SMLoc getStartLoc() const;
27   /// getEndLoc - Get the location of the last token of this operand.
28   virtual SMLoc getEndLoc() const;
29 };
30
31 } // end namespace llvm.
32
33 #endif