1 //===--- Job.cpp - Command to Execute -------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "clang/Driver/Job.h"
13 using namespace clang::driver;
17 Command::Command(const Action &_Source, const Tool &_Creator,
18 const char *_Executable, const ArgStringList &_Arguments)
19 : Job(CommandClass), Source(_Source), Creator(_Creator),
20 Executable(_Executable), Arguments(_Arguments)
24 JobList::JobList() : Job(JobListClass) {}
27 for (iterator it = begin(), ie = end(); it != ie; ++it)
31 void Job::addCommand(Command *C) {
32 cast<JobList>(this)->addJob(C);