~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/MC/MCParser/MCParsedAsmOperand.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
class raw_ostream;
16
 
 
17
 
/// MCParsedAsmOperand - This abstract class represents a source-level assembly
18
 
/// instruction operand.  It should be subclassed by target-specific code.  This
19
 
/// base class is used by target-independent clients and is the interface
20
 
/// between parsing an asm instruction and recognizing it.
21
 
class MCParsedAsmOperand {
22
 
public:  
23
 
  MCParsedAsmOperand() {}
24
 
  virtual ~MCParsedAsmOperand() {}
25
 
  
26
 
  /// getStartLoc - Get the location of the first token of this operand.
27
 
  virtual SMLoc getStartLoc() const = 0;
28
 
  /// getEndLoc - Get the location of the last token of this operand.
29
 
  virtual SMLoc getEndLoc() const = 0;
30
 
 
31
 
  /// dump - Print a debug representation of the operand to the given stream.
32
 
  virtual void dump(raw_ostream &OS) const = 0;
33
 
};
34
 
 
35
 
} // end namespace llvm.
36
 
 
37
 
#endif