Coverage Report

Created: 2022-01-22 13:19

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
Line
Count
Source (jump to first uncovered line)
1
//===-- PlatformMacOSX.h ----------------------------------------*- 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 LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMMACOSX_H
10
#define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMMACOSX_H
11
12
#include "PlatformDarwin.h"
13
14
class PlatformMacOSX : public PlatformDarwin {
15
public:
16
  PlatformMacOSX();
17
18
  // Class functions
19
  static lldb::PlatformSP CreateInstance(bool force,
20
                                         const lldb_private::ArchSpec *arch);
21
22
  static void Initialize();
23
24
  static void Terminate();
25
26
13.1k
  static llvm::StringRef GetPluginNameStatic() {
27
13.1k
    return Platform::GetHostPlatformName();
28
13.1k
  }
29
30
  static llvm::StringRef GetDescriptionStatic();
31
32
  // lldb_private::PluginInterface functions
33
9.66k
  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
34
35
  lldb_private::Status
36
  GetSharedModule(const lldb_private::ModuleSpec &module_spec,
37
                  lldb_private::Process *process, lldb::ModuleSP &module_sp,
38
                  const lldb_private::FileSpecList *module_search_paths_ptr,
39
                  llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules,
40
                  bool *did_create_ptr) override;
41
42
4
  llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
43
44
  lldb_private::Status
45
  GetFile(const lldb_private::FileSpec &source,
46
0
          const lldb_private::FileSpec &destination) override {
47
0
    return PlatformDarwin::GetFile(source, destination);
48
0
  }
49
50
  std::vector<lldb_private::ArchSpec> GetSupportedArchitectures() override;
51
52
  lldb_private::ConstString
53
  GetSDKDirectory(lldb_private::Target &target) override;
54
55
  void
56
  AddClangModuleCompilationOptions(lldb_private::Target *target,
57
1.42k
                                   std::vector<std::string> &options) override {
58
1.42k
    return PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(
59
1.42k
        target, options, lldb_private::XcodeSDK::Type::MacOSX);
60
1.42k
  }
61
};
62
63
#endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMMACOSX_H