[llvm] r234673 - [Orc] Update kaleidoscope tutorial for API change in r234669.
Lang Hames
lhames at gmail.com
Fri Apr 10 17:56:21 PDT 2015
Author: lhames
Date: Fri Apr 10 19:56:21 2015
New Revision: 234673
URL: http://llvm.org/viewvc/llvm-project?rev=234673&view=rev
Log:
[Orc] Update kaleidoscope tutorial for API change in r234669.
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=234673&r1=234672&r2=234673&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp Fri Apr 10 19:56:21 2015
@@ -1270,7 +1270,7 @@ private:
// pointer for the indirection to point at the trampoline.
std::string BodyPtrName = (F->getName() + "$address").str();
GlobalVariable *FunctionBodyPointer =
- createImplPointer(*F, BodyPtrName,
+ createImplPointer(*F->getType(), *F->getParent(), BodyPtrName,
createIRTypedAddress(*F->getFunctionType(),
CallbackInfo.getAddress()));
makeStub(*F, *FunctionBodyPointer);
More information about the llvm-commits
mailing list