summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-10-17 22:27:09 +0000
committerLang Hames <lhames@gmail.com>2018-10-17 22:27:09 +0000
commit5d4a12df139234e32c8e0d377fec14df823c798f (patch)
tree9200432ce3e09fc2139ea9d948ded2b4fb329ae3
parent7122595f813084ee6df9e197789a2a191c7d5629 (diff)
downloadbcm5719-llvm-5d4a12df139234e32c8e0d377fec14df823c798f.tar.gz
bcm5719-llvm-5d4a12df139234e32c8e0d377fec14df823c798f.zip
[BuildingAJIT] Simplify a tutorial example and fix a syntax error.
llvm-svn: 344712
-rw-r--r--llvm/docs/tutorial/BuildingAJIT1.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/BuildingAJIT1.rst b/llvm/docs/tutorial/BuildingAJIT1.rst
index 1342c10a9d1..7960ffe0bac 100644
--- a/llvm/docs/tutorial/BuildingAJIT1.rst
+++ b/llvm/docs/tutorial/BuildingAJIT1.rst
@@ -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
OpenPOWER on IntegriCloud