~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/utils/TableGen/OptParserEmitter.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//===- OptParserEmitter.h - Table Driven Command Line Parsing ---*- 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
 
#ifndef UTILS_TABLEGEN_OPTPARSEREMITTER_H
11
 
#define UTILS_TABLEGEN_OPTPARSEREMITTER_H
12
 
 
13
 
#include "TableGenBackend.h"
14
 
 
15
 
namespace llvm {
16
 
  /// OptParserEmitter - This tablegen backend takes an input .td file
17
 
  /// describing a list of options and emits a data structure for parsing and
18
 
  /// working with those options when given an input command line.
19
 
  class OptParserEmitter : public TableGenBackend {
20
 
    RecordKeeper &Records;
21
 
    bool GenDefs;
22
 
 
23
 
  public:
24
 
    OptParserEmitter(RecordKeeper &R, bool _GenDefs)
25
 
      : Records(R), GenDefs(_GenDefs) {}
26
 
 
27
 
    /// run - Output the option parsing information.
28
 
    ///
29
 
    /// \param GenHeader - Generate the header describing the option IDs.x
30
 
    void run(raw_ostream &OS);
31
 
  };
32
 
}
33
 
 
34
 
#endif