LLVM 20.0.0git
EHFrameRegistrationPlugin.h
Go to the documentation of this file.
1//===----- EHFrameRegistrationPlugin.h - Register eh-frames -----*- 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// Register eh-frame sections with a registrar.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_EXECUTIONENGINE_ORC_EHFRAMEREGISTRATIONPLUGIN_H
14#define LLVM_EXECUTIONENGINE_ORC_EHFRAMEREGISTRATIONPLUGIN_H
15
17
18#include <memory>
19#include <mutex>
20#include <vector>
21
22namespace llvm {
23
24namespace jitlink {
25class EHFrameRegistrar;
26} // namespace jitlink
27
28namespace orc {
29
31public:
34 std::unique_ptr<jitlink::EHFrameRegistrar> Registrar);
37 jitlink::PassConfiguration &PassConfig) override;
42 ResourceKey SrcKey) override;
43
44private:
45 std::mutex EHFramePluginMutex;
47 std::unique_ptr<jitlink::EHFrameRegistrar> Registrar;
50};
51
52} // end namespace orc
53} // end namespace llvm
54
55#endif // LLVM_EXECUTIONENGINE_ORC_EHFRAMEREGISTRATIONPLUGIN_H
#define G(x, y, z)
Definition: MD5.cpp:56
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
void notifyTransferringResources(JITDylib &JD, ResourceKey DstKey, ResourceKey SrcKey) override
Error notifyEmitted(MaterializationResponsibility &MR) override
Error notifyFailed(MaterializationResponsibility &MR) override
Error notifyRemovingResources(JITDylib &JD, ResourceKey K) override
void modifyPassConfig(MaterializationResponsibility &MR, jitlink::LinkGraph &G, jitlink::PassConfiguration &PassConfig) override
An ExecutionSession represents a running JIT program.
Definition: Core.h:1340
Represents a JIT'd dynamic library.
Definition: Core.h:897
Plugin instances can be added to the ObjectLinkingLayer to receive callbacks when code is loaded or e...
Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and...
Definition: Core.h:571
uintptr_t ResourceKey
Definition: Core.h:74
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18