[llvm] r229467 - [Orc][Kaleidoscope] Fix misnumbered steps in comments, plus tidy one

Lang Hames lhames at gmail.com
Mon Feb 16 21:53:28 PST 2015


Author: lhames
Date: Mon Feb 16 23:53:28 2015
New Revision: 229467

URL: http://llvm.org/viewvc/llvm-project?rev=229467&view=rev
Log:
[Orc][Kaleidoscope] Fix misnumbered steps in comments, plus tidy one
explanation up a little.

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=229467&r1=229466&r2=229467&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp Mon Feb 16 23:53:28 2015
@@ -1243,17 +1243,17 @@ public:
       CompileCallbacks.getCompileCallback(*F->getFunctionType());
 
     // Step 3) Create a stub that will indirectly call the body of this
-    //         function. Initialize the function pointer for the indirection to
-    //         point at the compile callback.
+    //         function once it is compiled. Initially, set the function
+    //         pointer for the indirection to point at the compile callback.
     std::string BodyPtrName = (F->getName() + "$address").str();
     GlobalVariable *FunctionBodyPointer =
       createImplPointer(*F, BodyPtrName, CallbackInfo.getAddress());
     makeStub(*F, *FunctionBodyPointer);
 
-    // Step 3) Add the module to the JIT.
+    // Step 4) Add the module containing the stub to the JIT.
     auto H = addModule(C.takeM());
 
-    // Step 4) Set the compile and update actions for the callback. The compile
+    // Step 5) Set the compile and update actions for the callback. The compile
     //         action will IRGen and Codegen the function. The update action
     //         will update FunctionBodyPointer to point at the newly compiled
     //         function pointer.





More information about the llvm-commits mailing list