[llvm] ea709c7 - [ORC] Fix examples after cd585864c0b.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 20:36:39 PDT 2025
Author: Lang Hames
Date: 2025-06-06T13:36:32+10:00
New Revision: ea709c7dcdcfc93b0fe58dbe97c62ebcb93cd244
URL: https://github.com/llvm/llvm-project/commit/ea709c7dcdcfc93b0fe58dbe97c62ebcb93cd244
DIFF: https://github.com/llvm/llvm-project/commit/ea709c7dcdcfc93b0fe58dbe97c62ebcb93cd244.diff
LOG: [ORC] Fix examples after cd585864c0b.
cd585864c0b added a MemoryBuffer argument to the memory manager factory. This
patch updates the examples to reflect that change.
Added:
Modified:
llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp b/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
index df2f48cef14cb..8623834dcf423 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
+++ b/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
ExitOnErr(LLJITBuilder()
.setJITTargetMachineBuilder(std::move(JTMB))
.setObjectLinkingLayerCreator([&](ExecutionSession &ES) {
- auto GetMemMgr = []() {
+ auto GetMemMgr = [](const MemoryBuffer &) {
return std::make_unique<SectionMemoryManager>();
};
auto ObjLinkingLayer =
diff --git a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
index 24ae953eca7a5..acdbce4f6e3e6 100644
--- a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
+++ b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
@@ -125,7 +125,8 @@ class SpeculativeJIT {
ExitOnErr(CXXRuntimeoverrides.enable(MainJD, Mangle));
}
- static std::unique_ptr<SectionMemoryManager> createMemMgr() {
+ static std::unique_ptr<SectionMemoryManager>
+ createMemMgr(const MemoryBuffer &) {
return std::make_unique<SectionMemoryManager>();
}
More information about the llvm-commits
mailing list