[llvm] r271868 - [Kaleidoscope][BuildingAJIT] Split up the code-block describing the substitution

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 22:07:53 PDT 2016


Author: lhames
Date: Mon Jun  6 00:07:52 2016
New Revision: 271868

URL: http://llvm.org/viewvc/llvm-project?rev=271868&view=rev
Log:
[Kaleidoscope][BuildingAJIT] Split up the code-block describing the substitution
of OptimizeLayer for CompileLayer in Chapter 2.

Hopefully this will read a little more clearly.


Modified:
    llvm/trunk/docs/tutorial/BuildingAJIT2.rst

Modified: llvm/trunk/docs/tutorial/BuildingAJIT2.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/BuildingAJIT2.rst?rev=271868&r1=271867&r2=271868&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/BuildingAJIT2.rst (original)
+++ llvm/trunk/docs/tutorial/BuildingAJIT2.rst Mon Jun  6 00:07:52 2016
@@ -97,6 +97,10 @@ that we will define below.
         return RuntimeDyld::SymbolInfo(nullptr);
       },
   // ...
+
+.. code-block:: c++
+
+  // ...
   // Add the set to the JIT with the resolver we created above and a newly
   // created SectionMemoryManager.
   return OptimizeLayer.addModuleSet(std::move(Ms),
@@ -104,10 +108,14 @@ that we will define below.
                                     std::move(Resolver));
   // ...
 
+.. code-block:: c++
+
   // ...
   return OptimizeLayer.findSymbol(MangledNameStream.str(), true);
   // ...
 
+.. code-block:: c++
+
   // ...
   OptimizeLayer.removeModuleSet(H);
   // ...




More information about the llvm-commits mailing list