summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCParser/MCParsedAsmOperand.h
blob: 7c2f5beb7473db84cbf8e648e07d0803c7dab5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===-- llvm/MC/MCParsedAsmOperand.h - Asm Parser Operand -------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_MC_MCASMOPERAND_H
#define LLVM_MC_MCASMOPERAND_H

namespace llvm {
class SMLoc;

/// MCParsedAsmOperand - This abstract class represents a source-level assembly
/// instruction operand.  It should be subclassed by target-specific code.  This
/// base class is used by target-independent clients and is the interface
/// between parsing an asm instruction and recognizing it.
class MCParsedAsmOperand {
public:  
  MCParsedAsmOperand() {}
  virtual ~MCParsedAsmOperand() {}
  
  /// getStartLoc - Get the location of the first token of this operand.
  virtual SMLoc getStartLoc() const;
  /// getEndLoc - Get the location of the last token of this operand.
  virtual SMLoc getEndLoc() const;
};

} // end namespace llvm.

#endif