Coverage Report

Created: 2023-09-21 18:56

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Driver/ToolChains/Haiku.h
Line
Count
Source
1
//===--- Haiku.h - Haiku 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
#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
10
#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H
11
12
#include "Gnu.h"
13
#include "clang/Driver/Driver.h"
14
#include "clang/Driver/ToolChain.h"
15
16
namespace clang {
17
namespace driver {
18
namespace toolchains {
19
20
class LLVM_LIBRARY_VISIBILITY Haiku : public Generic_ELF {
21
public:
22
  Haiku(const Driver &D, const llvm::Triple &Triple,
23
          const llvm::opt::ArgList &Args);
24
25
10
  bool IsMathErrnoDefault() const override { return false; }
26
10
  bool IsObjCNonFragileABIDefault() const override { return true; }
27
10
  bool isPICDefault() const override { return true; }
28
29
  void AddClangSystemIncludeArgs(
30
      const llvm::opt::ArgList &DriverArgs,
31
      llvm::opt::ArgStringList &CC1Args) const override;
32
  void addLibCxxIncludePaths(
33
      const llvm::opt::ArgList &DriverArgs,
34
      llvm::opt::ArgStringList &CC1Args) const override;
35
  void addLibStdCxxIncludePaths(
36
      const llvm::opt::ArgList &DriverArgs,
37
      llvm::opt::ArgStringList &CC1Args) const override;
38
39
4
  unsigned GetDefaultDwarfVersion() const override { return 4; }
40
41
10
  bool GetDefaultStandaloneDebug() const override { return true; }
42
};
43
44
} // end namespace toolchains
45
} // end namespace driver
46
} // end namespace clang
47
48
#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HAIKU_H