Unbreak mingw build
[llvm/msp430.git] / utils / TableGen / InstrEnumEmitter.h
blobb39fef2d433c9e4db86809fc6e13b5206033924d
1 //===- InstrEnumEmitter.h - Generate Instruction Set Enums ------*- 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 // This tablegen backend is responsible for emitting enums for each machine
11 // instruction.
13 //===----------------------------------------------------------------------===//
15 #ifndef INSTRENUM_EMITTER_H
16 #define INSTRENUM_EMITTER_H
18 #include "TableGenBackend.h"
20 namespace llvm {
22 class InstrEnumEmitter : public TableGenBackend {
23 RecordKeeper &Records;
24 public:
25 InstrEnumEmitter(RecordKeeper &R) : Records(R) {}
27 // run - Output the instruction set description, returning true on failure.
28 void run(std::ostream &OS);
31 } // End llvm namespace
33 #endif