Path: blob/main/contrib/llvm-project/clang/lib/Driver/Tool.cpp
35233 views
//===--- Tool.cpp - Compilation Tools -------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "clang/Driver/Tool.h"9#include "clang/Driver/InputInfo.h"1011using namespace clang::driver;1213Tool::Tool(const char *_Name, const char *_ShortName, const ToolChain &TC)14: Name(_Name), ShortName(_ShortName), TheToolChain(TC) {}1516Tool::~Tool() {17}1819void Tool::ConstructJobMultipleOutputs(Compilation &C, const JobAction &JA,20const InputInfoList &Outputs,21const InputInfoList &Inputs,22const llvm::opt::ArgList &TCArgs,23const char *LinkingOutput) const {24assert(Outputs.size() == 1 && "Expected only one output by default!");25ConstructJob(C, JA, Outputs.front(), Inputs, TCArgs, LinkingOutput);26}272829