<div dir="ltr"><div dir="ltr"><div dir="ltr">Trying to put together a simple test JIT compiler, using ORC which as I understand it will be the supported API going forward, I noticed that in the first chapter of the updated Kaleidoscope tutorial, there is sample code that starts like this:<div><br></div><div><div>ExecutionSession ES;</div><div>RTDyldObjectLinkingLayer ObjectLayer;</div><div>IRCompileLayer CompileLayer;</div><div><br></div><div>DataLayout DL;</div><div>MangleAndInterner Mangle;</div><div>ThreadSafeContext Ctx;</div></div><div><br></div><div>But in <a href="https://llvm.org/devmtg/2016-11/Slides/Hames-ORC.pdf">https://llvm.org/devmtg/2016-11/Slides/Hames-ORC.pdf</a> there is sample code that looks like this:</div><div><br></div><div><div>ObjectLinkingLayer LinkLayer;</div><div>SimpleCompiler Compiler(TargetMachine());</div><div>IRCompileLayer<…> CompileLayer(LinkLayer, Compiler);</div></div><div><br></div><div>Related but significantly different.</div><div><br></div><div>Which version is now considered correct/preferred?</div></div></div></div>