[Orc][Kaleidoscope] Fix misnumbered steps in comments, plus tidy one
authorLang Hames <lhames@gmail.com>
Tue, 17 Feb 2015 05:53:28 +0000 (05:53 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 17 Feb 2015 05:53:28 +0000 (05:53 +0000)
explanation up a little.

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

examples/Kaleidoscope/Orc/fully_lazy/toy.cpp

index 10113c6666d740bc5eae26f8690b6e91e2303e58..678e687cea8a1a01e0707adaaf6b9f747d51ab46 100644 (file)
@@ -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.