]> git.proxmox.com Git - rustc.git/blame - src/llvm/include/llvm/TableGen/Main.h
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / include / llvm / TableGen / Main.h
CommitLineData
223e47cc
LB
1//===- llvm/TableGen/Main.h - tblgen entry point ----------------*- 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 file declares the common entry point for tblgen tools.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TABLEGEN_MAIN_H
15#define LLVM_TABLEGEN_MAIN_H
16
17namespace llvm {
18
970d7e83
LB
19class RecordKeeper;
20class raw_ostream;
21/// \brief Perform the action using Records, and write output to OS.
22/// \returns true on error, false otherwise
23typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records);
223e47cc 24
970d7e83 25int TableGenMain(char *argv0, TableGenMainFn *MainFn);
223e47cc
LB
26}
27
28#endif