From: Luke Lau Date: Sat, 9 Nov 2019 18:08:33 +0000 (+0000) Subject: Resolve symbols X-Git-Url: http://git.lukelau.me/?a=commitdiff_plain;h=73c0a2461c164d776e949e17f344e05dd9f6a4a2;hp=73c0a2461c164d776e949e17f344e05dd9f6a4a2;p=kaleidoscope-hs.git Resolve symbols Now that the standard library is loaded into our process, we can finally being to fill out our symbol resolver. The symbol resolver takes in a symbol, and returns a pointer wrapped inside a JITSymbol if it can find the address of it. Otherwise it returns an error. You can use the symbol resolver to do much fancier stuff in OrcJIT, but for now we are just going to look up symbols that we have previously loaded into our process via loadLibraryPermanently. ---