mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
[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:
parent
01157841a3
commit
30bfbc3566
@ -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);
|
||||
// ...
|
||||
|
Loading…
Reference in New Issue
Block a user