summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-09-04 18:38:26 +0000
committerLang Hames <lhames@gmail.com>2019-09-04 18:38:26 +0000
commite4526330b39e16bec316ebb397c270fdcf574704 (patch)
treefc82475394dd2826105e00b1ecc158276acda1ba
parent4228245e41197528c3aeb7f6dbf03b6e873d16af (diff)
downloadbcm5719-llvm-e4526330b39e16bec316ebb397c270fdcf574704.tar.gz
bcm5719-llvm-e4526330b39e16bec316ebb397c270fdcf574704.zip
[docs] Add some comments to the inline LLJIT example.
llvm-svn: 370950
-rw-r--r--llvm/docs/ORCv2.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/docs/ORCv2.rst b/llvm/docs/ORCv2.rst
index edb1695f4e3..6e630a7d54e 100644
--- a/llvm/docs/ORCv2.rst
+++ b/llvm/docs/ORCv2.rst
@@ -117,8 +117,10 @@ module ``M`` loaded on an ThreadSafeContext ``Ctx``:
if (!EntrySym)
return EntrySym.takeError();
+ // Cast the entry point address to a function pointer.
auto *Entry = (void(*)())EntrySym.getAddress();
+ // Call into JIT'd code.
Entry();
The builder clasess provide a number of configuration options that can be
OpenPOWER on IntegriCloud