]> granicus.if.org Git - llvm/commitdiff
[docs] Add some comments to the inline LLJIT example.
authorLang Hames <lhames@gmail.com>
Wed, 4 Sep 2019 18:38:26 +0000 (18:38 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 4 Sep 2019 18:38:26 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370950 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ORCv2.rst

index edb1695f4e3edbd531a106b661e5e3a1a65b9401..6e630a7d54ee45d24e75883cfbfb9984d5c88faf 100644 (file)
@@ -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