We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1808a94 commit 94e68fbCopy full SHA for 94e68fb
src/target/llvm/llvm_module.cc
@@ -515,7 +515,13 @@ void LLVMModuleNode::InitORCJIT() {
515
const llvm::Triple& triple) -> std::unique_ptr<llvm::orc::ObjectLayer> {
516
#endif
517
#if _WIN32
518
+#if TVM_LLVM_VERSION >= 210
519
+ auto GetMemMgr = [](const llvm::MemoryBuffer&) {
520
+ return std::make_unique<SectionMemoryManager>();
521
+ };
522
+#else
523
auto GetMemMgr = []() { return std::make_unique<llvm::SectionMemoryManager>(); };
524
+#endif
525
auto ObjLinkingLayer =
526
std::make_unique<llvm::orc::RTDyldObjectLinkingLayer>(session, std::move(GetMemMgr));
527
#else
0 commit comments