From: Lang Hames Date: Wed, 4 Sep 2019 18:38:26 +0000 (+0000) Subject: [docs] Add some comments to the inline LLJIT example. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2be49edb50fee8ca083fef8fbdc5a7ed8c1db98c;p=llvm [docs] Add some comments to the inline LLJIT example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370950 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ORCv2.rst b/docs/ORCv2.rst index edb1695f4e3..6e630a7d54e 100644 --- a/docs/ORCv2.rst +++ b/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