[examples] Fix some comments in the LLJITWithJITLink example
llvm-svn: 375269
This commit is contained in:
parent
f9a42ed0a7
commit
bb7dd55f67
|
@ -38,14 +38,14 @@ int main(int argc, char *argv[]) {
|
||||||
cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
|
cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
|
||||||
ExitOnErr.setBanner(std::string(argv[0]) + ": ");
|
ExitOnErr.setBanner(std::string(argv[0]) + ": ");
|
||||||
|
|
||||||
// Declare an in-process JITLink memory manager.
|
// Define an in-process JITLink memory manager.
|
||||||
jitlink::InProcessMemoryManager MemMgr;
|
jitlink::InProcessMemoryManager MemMgr;
|
||||||
|
|
||||||
// Detect the host and set code model to small.
|
// Detect the host and set code model to small.
|
||||||
auto JTMB = ExitOnErr(JITTargetMachineBuilder::detectHost());
|
auto JTMB = ExitOnErr(JITTargetMachineBuilder::detectHost());
|
||||||
JTMB.setCodeModel(CodeModel::Small);
|
JTMB.setCodeModel(CodeModel::Small);
|
||||||
|
|
||||||
// Create an LLJIT instance with a custom CompileFunction.
|
// Create an LLJIT instance with an ObjectLinkingLayer as the base layer.
|
||||||
auto J =
|
auto J =
|
||||||
ExitOnErr(LLJITBuilder()
|
ExitOnErr(LLJITBuilder()
|
||||||
.setJITTargetMachineBuilder(std::move(JTMB))
|
.setJITTargetMachineBuilder(std::move(JTMB))
|
||||||
|
|
Loading…
Reference in New Issue