PPCFreeBSD.cpp 1.0 KB

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