blob: d3c959499a13218030fb951270ba55f29286384e [file] [log] [blame]
Daniel Dunbar63c4da92009-03-02 19:59:07 +00001//===--- Driver.cpp - Clang GCC Compatible Driver -----------------------*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
Daniel Dunbar63c4da92009-03-02 19:59:07 +000010#include "clang/Driver/Driver.h"
Daniel Dunbar63c4da92009-03-02 19:59:07 +000011
Daniel Dunbard6f0e372009-03-04 20:49:20 +000012#include "clang/Driver/Arg.h"
13#include "clang/Driver/ArgList.h"
14#include "clang/Driver/Compilation.h"
15#include "clang/Driver/Options.h"
16using namespace clang::driver;
17
18Driver::Driver() : Opts(new OptTable()) {
19
Daniel Dunbar63c4da92009-03-02 19:59:07 +000020}
21
22Driver::~Driver() {
Daniel Dunbard6f0e372009-03-04 20:49:20 +000023 delete Opts;
Daniel Dunbar63c4da92009-03-02 19:59:07 +000024}
25
26Compilation *Driver::BuildCompilation(int argc, const char **argv) {
27 return new Compilation();
28}