1*12c85518Srobert //===-- PPCFreeBSD.cpp - PowerPC ToolChain Implementations ------*- C++ -*-===// 2*12c85518Srobert // 3*12c85518Srobert // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*12c85518Srobert // See https://llvm.org/LICENSE.txt for license information. 5*12c85518Srobert // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*12c85518Srobert // 7*12c85518Srobert //===----------------------------------------------------------------------===// 8*12c85518Srobert 9*12c85518Srobert #include "PPCFreeBSD.h" 10*12c85518Srobert #include "clang/Driver/Driver.h" 11*12c85518Srobert #include "clang/Driver/Options.h" 12*12c85518Srobert #include "llvm/Support/Path.h" 13*12c85518Srobert 14*12c85518Srobert using namespace clang::driver::toolchains; 15*12c85518Srobert using namespace llvm::opt; 16*12c85518Srobert AddClangSystemIncludeArgs(const ArgList & DriverArgs,ArgStringList & CC1Args) const17*12c85518Srobertvoid PPCFreeBSDToolChain::AddClangSystemIncludeArgs( 18*12c85518Srobert const ArgList &DriverArgs, ArgStringList &CC1Args) const { 19*12c85518Srobert if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) && 20*12c85518Srobert !DriverArgs.hasArg(options::OPT_nobuiltininc)) { 21*12c85518Srobert const Driver &D = getDriver(); 22*12c85518Srobert SmallString<128> P(D.ResourceDir); 23*12c85518Srobert llvm::sys::path::append(P, "include", "ppc_wrappers"); 24*12c85518Srobert addSystemInclude(DriverArgs, CC1Args, P); 25*12c85518Srobert } 26*12c85518Srobert 27*12c85518Srobert FreeBSD::AddClangSystemIncludeArgs(DriverArgs, CC1Args); 28*12c85518Srobert } 29