LLVM API Documentation

Main.inc

Go to the documentation of this file.
00001 //===--- Main.inc - The LLVM Compiler Driver --------------------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open
00006 // Source License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //  This tool provides a single point of access to the LLVM
00011 //  compilation tools.  It has many options. To discover the options
00012 //  supported please refer to the tools' manual page or run the tool
00013 //  with the --help option.
00014 //
00015 //  This file provides the default entry point for the driver executable.
00016 //
00017 //===----------------------------------------------------------------------===//
00018 
00019 #ifndef LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC
00020 #define LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC
00021 
00022 #include "llvm/CompilerDriver/ForceLinkage.h"
00023 
00024 namespace llvmc {
00025   int Main(int argc, char** argv);
00026 }
00027 
00028 int main(int argc, char** argv) {
00029   llvmc::ForceLinkage();
00030   return llvmc::Main(argc, argv);
00031 }
00032 
00033 #endif // LLVM_INCLUDE_COMPILER_DRIVER_MAIN_INC