[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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271868 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2016-06-06 05:07:52 +00:00
parent 01157841a3
commit 30bfbc3566

View File

@ -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);
// ...