llvm.org GIT mirror llvm / 207b6ab
[BuildingAJIT] Use the remote target triple to construct the TargetMachine in Chapter 5. Chapter 5 demonstrates remote JITing: code is executed on the remote, not the machine running the REPL, so it's the remote's triple (and TargetMachine) that we need. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284657 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 4 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8686 typedef decltype(OptimizeLayer)::ModuleSetHandleT ModuleHandle;
8787
8888 KaleidoscopeJIT(MyRemote &Remote)
89 : TM(EngineBuilder().selectTarget()),
89 : TM(EngineBuilder().selectTarget(Triple(Remote.getTargetTriple()), "",
90 "", SmallVector())),
9091 DL(TM->createDataLayout()),
9192 CompileLayer(ObjectLayer, SimpleCompiler(*TM)),
9293 OptimizeLayer(CompileLayer,