[llvm] c986ee5 - [ORC] Mangle PerfSupportPlugin runtime function names as C (#226010)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 22:01:09 PDT 2026


Author: Lang Hames
Date: 2026-09-24T15:01:03+10:00
New Revision: c986ee5d0b97f53ef82852597d626cfbf079d5a7

URL: https://github.com/llvm/llvm-project/commit/c986ee5d0b97f53ef82852597d626cfbf079d5a7
DIFF: https://github.com/llvm/llvm-project/commit/c986ee5d0b97f53ef82852597d626cfbf079d5a7.diff

LOG: [ORC] Mangle PerfSupportPlugin runtime function names as C (#226010)

The llvm_orc_registerJITLoaderPerf{Start,End,Impl} names are extern "C"
functions in JITLoaderPerf.cpp, so describe them as C names rather than
Verbatim. PerfSupportPlugin is ELF-only, where C mangling adds no
prefix, so this is a no-op in practice.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/Debugging/PerfSupportPlugin.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/Debugging/PerfSupportPlugin.cpp b/llvm/lib/ExecutionEngine/Orc/Debugging/PerfSupportPlugin.cpp
index 7eca2df473d57..4e07800a416bd 100644
--- a/llvm/lib/ExecutionEngine/Orc/Debugging/PerfSupportPlugin.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Debugging/PerfSupportPlugin.cpp
@@ -77,11 +77,11 @@ Expected<std::string> createX64EHFrameHeader(Section &EHFrame,
 }
 
 constexpr SymbolNameSpec RegisterPerfStartSymbolName =
-    SymbolNameSpec::verbatim("llvm_orc_registerJITLoaderPerfStart");
+    SymbolNameSpec::c("llvm_orc_registerJITLoaderPerfStart");
 constexpr SymbolNameSpec RegisterPerfEndSymbolName =
-    SymbolNameSpec::verbatim("llvm_orc_registerJITLoaderPerfEnd");
+    SymbolNameSpec::c("llvm_orc_registerJITLoaderPerfEnd");
 constexpr SymbolNameSpec RegisterPerfImplSymbolName =
-    SymbolNameSpec::verbatim("llvm_orc_registerJITLoaderPerfImpl");
+    SymbolNameSpec::c("llvm_orc_registerJITLoaderPerfImpl");
 
 static PerfJITCodeLoadRecord
 getCodeLoadRecord(const Symbol &Sym, std::atomic<uint64_t> &CodeIndex) {


        


More information about the llvm-commits mailing list