[llvm] r344712 - [BuildingAJIT] Simplify a tutorial example and fix a syntax error.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 17 15:27:09 PDT 2018
Author: lhames
Date: Wed Oct 17 15:27:09 2018
New Revision: 344712
URL: http://llvm.org/viewvc/llvm-project?rev=344712&view=rev
Log:
[BuildingAJIT] Simplify a tutorial example and fix a syntax error.
Modified:
llvm/trunk/docs/tutorial/BuildingAJIT1.rst
Modified: llvm/trunk/docs/tutorial/BuildingAJIT1.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/BuildingAJIT1.rst?rev=344712&r1=344711&r2=344712&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/BuildingAJIT1.rst (original)
+++ llvm/trunk/docs/tutorial/BuildingAJIT1.rst Wed Oct 17 15:27:09 2018
@@ -75,10 +75,9 @@ will look like:
.. code-block:: c++
- std::unique_ptr<Module> M = buildModule();
JIT J;
- J.addModule(*M);
- auto *Main = (int(*)(int, char*[]))J.lookup("main");.getAddress();
+ J.addModule(buildModule());
+ auto *Main = (int(*)(int, char*[]))J.lookup("main").getAddress();
int Result = Main();
The APIs that we build in these tutorials will all be variations on this simple
More information about the llvm-commits
mailing list