Skip to content

Commit e452633

Browse files
committed
[docs] Add some comments to the inline LLJIT example.
llvm-svn: 370950
1 parent 4228245 commit e452633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/docs/ORCv2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ module ``M`` loaded on an ThreadSafeContext ``Ctx``:
117117
if (!EntrySym)
118118
return EntrySym.takeError();
119119

120+
// Cast the entry point address to a function pointer.
120121
auto *Entry = (void(*)())EntrySym.getAddress();
121122

123+
// Call into JIT'd code.
122124
Entry();
123125

124126
The builder clasess provide a number of configuration options that can be

0 commit comments

Comments
 (0)