clang: lib/Driver/ToolChains/PPCFreeBSD.cpp Source File (original) (raw)

1//===-- PPCFreeBSD.cpp - PowerPC ToolChain Implementations ------*- C++ -*-===//

2//

3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

4// See https://llvm.org/LICENSE.txt for license information.

5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

6//

7//===----------------------------------------------------------------------===//

8

12#include "llvm/Support/Path.h"

13

16

18 const ArgList &DriverArgs, ArgStringList &CC1Args) const {

19 if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) &&

20 !DriverArgs.hasArg(options::OPT_nobuiltininc)) {

23 llvm::sys::path::append(P, "include", "ppc_wrappers");

25 }

26

28}

Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...