Skip to content

Commit

Permalink
[ORC][MachO] For convenience, make MachOPlatform ref available to sub…
Browse files Browse the repository at this point in the history
…classes.

This saves SimpleMachOHeaderMU subclasses from having to hold their own
reference.
  • Loading branch information
lhames committed Dec 12, 2023
1 parent cc5a3be commit 671fa91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ class SimpleMachOHeaderMU : public MaterializationUnit {
virtual jitlink::Block &createHeaderBlock(JITDylib &JD, jitlink::LinkGraph &G,
jitlink::Section &HeaderSection);

MachOPlatform &MOP;

private:
struct HeaderSymbol {
const char *Name;
Expand All @@ -359,8 +361,6 @@ class SimpleMachOHeaderMU : public MaterializationUnit {
static MaterializationUnit::Interface
createHeaderInterface(MachOPlatform &MOP,
const SymbolStringPtr &HeaderStartSymbol);

MachOPlatform &MOP;
};

/// Simple MachO header graph builder.
Expand Down

0 comments on commit 671fa91

Please sign in to comment.