[llvm] [ORC] Move Mangler implementation from OrcShared to OrcJIT (PR #221942)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 02:50:51 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/221942
Many OrcJIT clients don't directly depend on OrcSupport, and so broke when e91092685eab moved mangling from OrcJIT to OrcSupport.
We want to reorganize these libraries in the not too distant future. Rather than forcing clients to update dependencies that may change again soon, move the code (but not the header) back into the OrcJIT library. We can address the mismatch between the header's and implementation's home during the library reorganization.
>From 5a643e3eae0207ace8d7653b293011768df22c53 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Tue, 8 Sep 2026 19:44:15 +1000
Subject: [PATCH] [ORC] Move Mangler implementation from OrcShared to OrcJIT
Many OrcJIT clients don't directly depend on OrcSupport, and so broke
when e91092685eab moved mangling from OrcJIT to OrcSupport.
We want to reorganize these libraries in the not too distant future.
Rather than forcing clients to update dependencies that may change again
soon, move the code (but not the header) back into the OrcJIT library.
We can address the mismatch between the header's and implementation's
home during the library reorganization.
---
llvm/lib/ExecutionEngine/Orc/CMakeLists.txt | 1 +
llvm/lib/ExecutionEngine/Orc/{Shared => }/Mangler.cpp | 0
llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt | 1 -
3 files changed, 1 insertion(+), 1 deletion(-)
rename llvm/lib/ExecutionEngine/Orc/{Shared => }/Mangler.cpp (100%)
diff --git a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
index 11604d94fba34..06c01f26f194d 100644
--- a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
+++ b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
@@ -47,6 +47,7 @@ add_llvm_component_library(LLVMOrcJIT
LLJIT.cpp
MachO.cpp
MachOPlatform.cpp
+ Mangler.cpp
MapperJITLinkMemoryManager.cpp
MemoryMapper.cpp
ELFNixPlatform.cpp
diff --git a/llvm/lib/ExecutionEngine/Orc/Shared/Mangler.cpp b/llvm/lib/ExecutionEngine/Orc/Mangler.cpp
similarity index 100%
rename from llvm/lib/ExecutionEngine/Orc/Shared/Mangler.cpp
rename to llvm/lib/ExecutionEngine/Orc/Mangler.cpp
diff --git a/llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt b/llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt
index 33a8a41df1e0f..717fc21826aba 100644
--- a/llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt
+++ b/llvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt
@@ -1,7 +1,6 @@
add_llvm_component_library(LLVMOrcShared
AllocationActions.cpp
MachOObjectFormat.cpp
- Mangler.cpp
ObjectFormats.cpp
OrcError.cpp
OrcRTBridge.cpp
More information about the llvm-commits
mailing list