From 2be49edb50fee8ca083fef8fbdc5a7ed8c1db98c Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 4 Sep 2019 18:38:26 +0000 Subject: [PATCH] [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 --- docs/ORCv2.rst | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0