[Orc][Kaleidoscope] Make sure to look for the mangled name when updating the
authorLang Hames <lhames@gmail.com>
Wed, 18 Feb 2015 23:07:13 +0000 (23:07 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 18 Feb 2015 23:07:13 +0000 (23:07 +0000)
function body pointer in the fully lazy orc/kaleidoscope tutorial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229760 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/Orc/fully_lazy/toy.cpp

index 678e687..3ef9799 100644 (file)
@@ -1266,7 +1266,7 @@ public:
       return findSymbolIn(H, Fn->Proto->Name).getAddress();
     });
     CallbackInfo.setUpdateAction(
-      CompileCallbacks.getLocalFPUpdater(H, BodyPtrName));
+      CompileCallbacks.getLocalFPUpdater(H, Mangle(BodyPtrName)));
   }
 
 private: