Move the driver entry point out of Main.inc.
[oota-llvm.git] / include / llvm / CompilerDriver / Main.inc
1 //===--- Main.inc - 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 //  This tool provides a single point of access to the LLVM
11 //  compilation tools.  It has many options. To discover the options
12 //  supported please refer to the tools' manual page or run the tool
13 //  with the --help option.
14 //
15 //  This file provides the default entry point for the driver executable.
16 //
17 //===----------------------------------------------------------------------===//
18
19 #ifndef LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC
20 #define LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC
21
22 #include "llvm/CompilerDriver/ForceLinkage.h"
23
24 namespace llvmc {
25   int Main(int argc, char** argv);
26 }
27
28 int main(int argc, char** argv) {
29   llvmc::ForceLinkage();
30   return llvmc::Main(argc, argv);
31 }
32
33 #endif // LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC