[llvm] 671fa91 - [ORC][MachO] For convenience, make MachOPlatform ref available to subclasses.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 09:39:34 PST 2023
Author: Lang Hames
Date: 2023-12-12T09:38:21-08:00
New Revision: 671fa917ce33b6dfadd87d57ba30c59fa94e9a27
URL: https://github.com/llvm/llvm-project/commit/671fa917ce33b6dfadd87d57ba30c59fa94e9a27
DIFF: https://github.com/llvm/llvm-project/commit/671fa917ce33b6dfadd87d57ba30c59fa94e9a27.diff
LOG: [ORC][MachO] For convenience, make MachOPlatform ref available to subclasses.
This saves SimpleMachOHeaderMU subclasses from having to hold their own
reference.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h b/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
index db7855e69a66f..d9b809ab5b11a 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
@@ -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;
@@ -359,8 +361,6 @@ class SimpleMachOHeaderMU : public MaterializationUnit {
static MaterializationUnit::Interface
createHeaderInterface(MachOPlatform &MOP,
const SymbolStringPtr &HeaderStartSymbol);
-
- MachOPlatform &MOP;
};
/// Simple MachO header graph builder.
More information about the llvm-commits
mailing list