Files
swift-mirror/lib/Driver/Tool.cpp
Jordan Rose 036b083138 [Driver] Eliminate the JobList class.
This was just a wrapper around SmallVector that optionally owned the Job pointers
in it. Now that all Jobs are owned by the Compilation, we don't have to worry
about this any more.

No functionality change.

Swift SVN r29668
2015-06-25 15:45:45 +00:00

33 lines
1.3 KiB
C++

//===--- Tool.cpp - Compilation Tools -------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/Driver/Tool.h"
#include "swift/Driver/Action.h"
#include "swift/Driver/Job.h"
#include "llvm/ADT/STLExtras.h"
using namespace swift;
using namespace swift::driver;
std::unique_ptr<Job>
Tool::constructJob(const JobAction &JA,
SmallVectorImpl<const Job *> &&inputs,
std::unique_ptr<CommandOutput> output,
const ActionList &inputActions,
const llvm::opt::ArgList &args,
const OutputInfo &OI) const {
auto arguments = constructArgumentList(JA, inputs, output.get(),
inputActions, args, OI);
return llvm::make_unique<Job>(JA, *this, std::move(inputs), std::move(output),
getPath(args, OI), std::move(arguments));
}