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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/CompilerDriver/AutoGenerated.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
 
//===--- AutoGenerated.h - The LLVM Compiler Driver -------------*- C++ -*-===//
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
 
//  Interface to the autogenerated driver code.
11
 
//
12
 
//===----------------------------------------------------------------------===//
13
 
 
14
 
#ifndef LLVM_INCLUDE_COMPILER_DRIVER_AUTOGENERATED_H
15
 
#define LLVM_INCLUDE_COMPILER_DRIVER_AUTOGENERATED_H
16
 
 
17
 
namespace llvmc {
18
 
  class LanguageMap;
19
 
  class CompilationGraph;
20
 
 
21
 
  namespace autogenerated {
22
 
 
23
 
    int PreprocessOptions();
24
 
    int PopulateLanguageMap(LanguageMap& langMap);
25
 
    int PopulateCompilationGraph(CompilationGraph& graph);
26
 
 
27
 
    inline int RunInitialization (LanguageMap& M, CompilationGraph& G) {
28
 
      if (int ret = PreprocessOptions())
29
 
        return ret;
30
 
      if (int ret = PopulateLanguageMap(M))
31
 
        return ret;
32
 
      if (int ret = PopulateCompilationGraph(G))
33
 
        return ret;
34
 
 
35
 
      return 0;
36
 
    }
37
 
  }
38
 
}
39
 
 
40
 
#endif // LLVM_INCLUDE_COMPILER_DRIVER_AUTOGENERATED_H