]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/include/llvm/CompilerDriver/AutoGenerated.h
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
[FreeBSD/stable/9.git] / contrib / llvm / include / llvm / CompilerDriver / AutoGenerated.h
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