Coverage Report

Created: 2022-01-15 10:30

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Plugins/DynamicLoader/wasm-DYLD/DynamicLoaderWasmDYLD.h
Line
Count
Source (jump to first uncovered line)
1
//===-- DynamicLoaderWasmDYLD.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 liblldb_Plugins_DynamicLoaderWasmDYLD_h_
10
#define liblldb_Plugins_DynamicLoaderWasmDYLD_h_
11
12
#include "lldb/Target/DynamicLoader.h"
13
14
namespace lldb_private {
15
namespace wasm {
16
17
class DynamicLoaderWasmDYLD : public DynamicLoader {
18
public:
19
  DynamicLoaderWasmDYLD(Process *process);
20
21
  static void Initialize();
22
3.43k
  static void Terminate() {}
23
24
3.43k
  static llvm::StringRef GetPluginNameStatic() { return "wasm-dyld"; }
25
  static llvm::StringRef GetPluginDescriptionStatic();
26
27
  static DynamicLoader *CreateInstance(Process *process, bool force);
28
29
  /// DynamicLoader
30
  /// \{
31
  void DidAttach() override;
32
0
  void DidLaunch() override {}
33
0
  Status CanLoadImage() override { return Status(); }
34
  lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,
35
                                                  bool stop) override;
36
  /// \}
37
38
  /// PluginInterface protocol.
39
  /// \{
40
0
  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
41
  /// \}
42
};
43
44
} // namespace wasm
45
} // namespace lldb_private
46
47
#endif // liblldb_Plugins_DynamicLoaderWasmDYLD_h_