2004-08-01 07:59:33 +02:00
|
|
|
//===- AsmWriterEmitter.h - Generate an assembly writer ---------*- C++ -*-===//
|
2005-04-22 02:00:37 +02:00
|
|
|
//
|
2004-08-01 07:59:33 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 02:00:37 +02:00
|
|
|
//
|
2004-08-01 07:59:33 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This tablegen backend is responsible for emitting an assembly printer for the
|
|
|
|
// code generator.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ASMWRITER_EMITTER_H
|
|
|
|
#define ASMWRITER_EMITTER_H
|
|
|
|
|
|
|
|
#include "TableGenBackend.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class AsmWriterEmitter : public TableGenBackend {
|
|
|
|
RecordKeeper &Records;
|
|
|
|
public:
|
|
|
|
AsmWriterEmitter(RecordKeeper &R) : Records(R) {}
|
2005-04-22 02:00:37 +02:00
|
|
|
|
2004-08-01 07:59:33 +02:00
|
|
|
// run - Output the asmwriter, returning true on failure.
|
|
|
|
void run(std::ostream &o);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|