[llvm] r229760 - [Orc][Kaleidoscope] Make sure to look for the mangled name when updating the

Lang Hames lhames at gmail.com
Wed Feb 18 15:07:13 PST 2015


Author: lhames
Date: Wed Feb 18 17:07:13 2015
New Revision: 229760

URL: http://llvm.org/viewvc/llvm-project?rev=229760&view=rev
Log:
[Orc][Kaleidoscope] Make sure to look for the mangled name when updating the
function body pointer in the fully lazy orc/kaleidoscope tutorial.

Modified:
    llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp

Modified: llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp?rev=229760&r1=229759&r2=229760&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp Wed Feb 18 17:07:13 2015
@@ -1266,7 +1266,7 @@ public:
       return findSymbolIn(H, Fn->Proto->Name).getAddress();
     });
     CallbackInfo.setUpdateAction(
-      CompileCallbacks.getLocalFPUpdater(H, BodyPtrName));
+      CompileCallbacks.getLocalFPUpdater(H, Mangle(BodyPtrName)));
   }
 
 private:





More information about the llvm-commits mailing list