2009-03-02 19:59:07 +00:00
|
|
|
//===-- driver.cpp - Clang GCC-Compatible Driver --------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-03-03 05:55:11 +00:00
|
|
|
// This is the entry point to the clang driver; it is a thin wrapper
|
|
|
|
// for functionality in the Driver clang library.
|
2009-03-02 19:59:07 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "clang/Driver/Compilation.h"
|
|
|
|
#include "clang/Driver/Driver.h"
|
2009-03-04 08:33:23 +00:00
|
|
|
#include "clang/Driver/Option.h"
|
|
|
|
#include "clang/Driver/Options.h"
|
|
|
|
|
2009-03-02 19:59:07 +00:00
|
|
|
#include "llvm/ADT/OwningPtr.h"
|
|
|
|
#include "llvm/System/Signals.h"
|
2009-03-04 20:49:20 +00:00
|
|
|
using namespace clang::driver;
|
2009-03-02 19:59:07 +00:00
|
|
|
|
|
|
|
int main(int argc, const char **argv) {
|
|
|
|
llvm::sys::PrintStackTraceOnErrorSignal();
|
|
|
|
|
|
|
|
llvm::OwningPtr<Driver> TheDriver(new Driver());
|
|
|
|
|
|
|
|
llvm::OwningPtr<Compilation> C(TheDriver->BuildCompilation(argc, argv));
|
|
|
|
|
|
|
|
return C->Execute();
|
|
|
|
}
|