2009-07-20 18:55:04 +00:00
|
|
|
//===-- llvm/MC/MCAsmParser.h - Abstract Asm Parser Interface ---*- 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_MCASMPARSER_H
|
|
|
|
#define LLVM_MC_MCASMPARSER_H
|
|
|
|
|
|
|
|
namespace llvm {
|
2009-07-20 20:01:54 +00:00
|
|
|
class MCAsmLexer;
|
2009-07-20 18:55:04 +00:00
|
|
|
|
|
|
|
/// MCAsmParser - Generic assembler parser interface, for use by target specific
|
|
|
|
/// assembly parsers.
|
|
|
|
class MCAsmParser {
|
|
|
|
MCAsmParser(const MCAsmParser &); // DO NOT IMPLEMENT
|
|
|
|
void operator=(const MCAsmParser &); // DO NOT IMPLEMENT
|
|
|
|
protected: // Can only create subclasses.
|
|
|
|
MCAsmParser();
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual ~MCAsmParser();
|
2009-07-20 20:01:54 +00:00
|
|
|
|
|
|
|
virtual MCAsmLexer &getLexer() = 0;
|
2009-07-20 18:55:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|