blob: cb2d0646278643b2be47a053249d33f107bb5934 [file] [log] [blame]
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +00001//===- LLVMCConfigurationEmitter.cpp - Generate LLVMCC config -------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open
6// Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This tablegen backend is responsible for emitting LLVMCC configuration code.
11//
12//===----------------------------------------------------------------------===//
13
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000014#ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
15#define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000016
17#include "TableGenBackend.h"
18
19namespace llvm {
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000020 class LLVMCConfigurationEmitter : public TableGenBackend {
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000021 RecordKeeper &Records;
22 public:
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000023 explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000024
25 // run - Output the asmwriter, returning true on failure.
26 void run(std::ostream &o);
27 };
28}
29
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000030#endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H