1 //===- llvm/TableGen/TableGenAction.h - defines TableGenAction --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the TableGenAction base class to be derived from by
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TABLEGEN_TABLEGENACTION_H
16 #define LLVM_TABLEGEN_TABLEGENACTION_H
23 class TableGenAction {
24 virtual void anchor();
26 virtual ~TableGenAction() {}
28 /// Perform the action using Records, and write output to OS.
29 /// @returns true on error, false otherwise
30 virtual bool operator()(raw_ostream &OS, RecordKeeper &Records) = 0;