[PATCH] D47308: [ORC] Perform name mangling in findSymbolIn(), as done in findSymbol().

Andres Freund via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 24 10:07:21 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL333206: [ORC] Perform name mangling in findSymbolIn(), as done in findSymbol(). (authored by anarazel, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D47308

Files:
  llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h


Index: llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
===================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
+++ llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
@@ -380,7 +380,7 @@
 
   JITSymbol findSymbolIn(orc::VModuleKey K, const std::string &Name,
                          bool ExportedSymbolsOnly) {
-    return KeyLayers[K]->findSymbolIn(K, Name, ExportedSymbolsOnly);
+    return KeyLayers[K]->findSymbolIn(K, mangle(Name), ExportedSymbolsOnly);
   }
 
   LLVMOrcErrorCode findSymbolAddress(JITTargetAddress &RetAddr,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47308.148437.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/bf52f66e/attachment.bin>


More information about the llvm-commits mailing list