blob: 155dfc83c015e47644d192140855e1a6808cd814 [file] [log] [blame]
Chris Lattner2e1f51b2004-08-01 05:59:33 +00001//===- AsmWriterEmitter.h - Generate an assembly writer ---------*- C++ -*-===//
Misha Brukman3da94ae2005-04-22 00:00:37 +00002//
Chris Lattner2e1f51b2004-08-01 05:59:33 +00003// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
Misha Brukman3da94ae2005-04-22 00:00:37 +00007//
Chris Lattner2e1f51b2004-08-01 05:59:33 +00008//===----------------------------------------------------------------------===//
9//
10// This tablegen backend is responsible for emitting an assembly printer for the
11// code generator.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef ASMWRITER_EMITTER_H
16#define ASMWRITER_EMITTER_H
17
18#include "TableGenBackend.h"
19
20namespace llvm {
21
22 class AsmWriterEmitter : public TableGenBackend {
23 RecordKeeper &Records;
24 public:
25 AsmWriterEmitter(RecordKeeper &R) : Records(R) {}
Misha Brukman3da94ae2005-04-22 00:00:37 +000026
Chris Lattner2e1f51b2004-08-01 05:59:33 +000027 // run - Output the asmwriter, returning true on failure.
28 void run(std::ostream &o);
29 };
30}
31#endif