mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
introduce the MCParsedAsmOperand class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a67dd2d47
commit
45220a8439
28
include/llvm/MC/MCParsedAsmOperand.h
Normal file
28
include/llvm/MC/MCParsedAsmOperand.h
Normal file
@ -0,0 +1,28 @@
|
||||
//===-- 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 {
|
||||
|
||||
/// 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() = 0;
|
||||
// TODO: Out of line vfun.
|
||||
};
|
||||
|
||||
} // end namespace llvm.
|
||||
|
||||
#endif
|
@ -15,6 +15,7 @@
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCParsedAsmOperand.h"
|
||||
#include "llvm/Support/SourceMgr.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
#include "llvm/Target/TargetAsmParser.h"
|
||||
@ -71,7 +72,7 @@ namespace {
|
||||
|
||||
/// X86Operand - Instances of this class represent a parsed X86 machine
|
||||
/// instruction.
|
||||
struct X86Operand {
|
||||
struct X86Operand : public MCParsedAsmOperand {
|
||||
enum {
|
||||
Token,
|
||||
Register,
|
||||
|
Loading…
x
Reference in New Issue
Block a user