diff options
author | Lang Hames <lhames@gmail.com> | 2023-12-12 09:36:12 -0800 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2023-12-12 09:38:21 -0800 |
commit | 671fa917ce33b6dfadd87d57ba30c59fa94e9a27 (patch) | |
tree | 02235da3efb6efcc2095c10fc491ff9118e0fe8d | |
parent | cc5a3be48b80e7158a1d55cf73cc1d6a77f78124 (diff) | |
download | llvm-671fa917ce33b6dfadd87d57ba30c59fa94e9a27.zip llvm-671fa917ce33b6dfadd87d57ba30c59fa94e9a27.tar.gz llvm-671fa917ce33b6dfadd87d57ba30c59fa94e9a27.tar.bz2 |
[ORC][MachO] For convenience, make MachOPlatform ref available to subclasses.
This saves SimpleMachOHeaderMU subclasses from having to hold their own
reference.
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h b/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h index db7855e..d9b809a 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h @@ -345,6 +345,8 @@ protected: virtual jitlink::Block &createHeaderBlock(JITDylib &JD, jitlink::LinkGraph &G, jitlink::Section &HeaderSection); + MachOPlatform &MOP; + private: struct HeaderSymbol { const char *Name; @@ -359,8 +361,6 @@ private: static MaterializationUnit::Interface createHeaderInterface(MachOPlatform &MOP, const SymbolStringPtr &HeaderStartSymbol); - - MachOPlatform &MOP; }; /// Simple MachO header graph builder. |