diff options
author | Lang Hames <lhames@gmail.com> | 2021-12-08 08:10:41 +1100 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2021-12-08 13:41:15 +1100 |
commit | ae73f3fdd6340a7cc20ba3ad878b5a5b6502968f (patch) | |
tree | ec9dc74fcfa997b6cfb1a1582e2b9abcb30139e9 /llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp | |
parent | c16c99ab03c6b7b4effb074acbaecda083b18b03 (diff) | |
download | llvm-ae73f3fdd6340a7cc20ba3ad878b5a5b6502968f.zip llvm-ae73f3fdd6340a7cc20ba3ad878b5a5b6502968f.tar.gz llvm-ae73f3fdd6340a7cc20ba3ad878b5a5b6502968f.tar.bz2 |
[ORC] Add a MaterializationUnit::Interface struct.
MaterializationUnit::Interface holds the values that make up the interface
(for ORC's purposes) of a materialization unit: the symbol flags map and
initializer symbol.
Having a type for this will make functions that build materializer interfaces
more readable and maintainable.
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp index ee1630a..f427271 100644 --- a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp +++ b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp @@ -31,8 +31,8 @@ public: CompileCallbackMaterializationUnit(SymbolStringPtr Name, CompileFunction Compile) - : MaterializationUnit(SymbolFlagsMap({{Name, JITSymbolFlags::Exported}}), - nullptr), + : MaterializationUnit(Interface( + SymbolFlagsMap({{Name, JITSymbolFlags::Exported}}), nullptr)), Name(std::move(Name)), Compile(std::move(Compile)) {} StringRef getName() const override { return "<Compile Callbacks>"; } |