[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 09:42:12 PDT 2018


anarazel updated this revision to Diff 148435.
anarazel added a comment.

Rebase after temporary revert of r333147.


Repository:
  rL LLVM

https://reviews.llvm.org/D47308

Files:
  lib/ExecutionEngine/Orc/OrcCBindingsStack.h


Index: lib/ExecutionEngine/Orc/OrcCBindingsStack.h
===================================================================
--- lib/ExecutionEngine/Orc/OrcCBindingsStack.h
+++ 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.148435.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/f93bd4b1/attachment.bin>


More information about the llvm-commits mailing list