[llvm] r370950 - [docs] Add some comments to the inline LLJIT example.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 11:38:26 PDT 2019


Author: lhames
Date: Wed Sep  4 11:38:26 2019
New Revision: 370950

URL: http://llvm.org/viewvc/llvm-project?rev=370950&view=rev
Log:
[docs] Add some comments to the inline LLJIT example.

Modified:
    llvm/trunk/docs/ORCv2.rst

Modified: llvm/trunk/docs/ORCv2.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ORCv2.rst?rev=370950&r1=370949&r2=370950&view=diff
==============================================================================
--- llvm/trunk/docs/ORCv2.rst (original)
+++ llvm/trunk/docs/ORCv2.rst Wed Sep  4 11:38:26 2019
@@ -117,8 +117,10 @@ module ``M`` loaded on an ThreadSafeCont
   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




More information about the llvm-commits mailing list