Coverage Report

Created: 2022-01-18 06:27

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Driver/ToolChains/PPCFreeBSD.cpp
Line
Count
Source
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
9
#include "PPCFreeBSD.h"
10
#include "clang/Driver/Driver.h"
11
#include "clang/Driver/Options.h"
12
#include "llvm/Support/Path.h"
13
14
using namespace clang::driver::toolchains;
15
using namespace llvm::opt;
16
17
void PPCFreeBSDToolChain::AddClangSystemIncludeArgs(
18
14
    const ArgList &DriverArgs, ArgStringList &CC1Args) const {
19
14
  if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) &&
20
14
      !DriverArgs.hasArg(options::OPT_nobuiltininc)) {
21
14
    const Driver &D = getDriver();
22
14
    SmallString<128> P(D.ResourceDir);
23
14
    llvm::sys::path::append(P, "include", "ppc_wrappers");
24
14
    addSystemInclude(DriverArgs, CC1Args, P);
25
14
  }
26
27
14
  FreeBSD::AddClangSystemIncludeArgs(DriverArgs, CC1Args);
28
14
}