diff options
author | Jon Roelofs <jonathan_roelofs@apple.com> | 2021-04-15 15:54:28 -0700 |
---|---|---|
committer | Jon Roelofs <jonathan_roelofs@apple.com> | 2021-04-15 15:54:28 -0700 |
commit | 0bae93771d5589f69b79c3e3f6d71d69b8dd6667 (patch) | |
tree | 2ca9b53585fc0f7290feaa24624fb75b705a14ad /llvm/docs/tutorial | |
parent | f62ad15cd7df0ca7681e0dbb894ee1c1d2465c51 (diff) | |
download | llvm-0bae93771d5589f69b79c3e3f6d71d69b8dd6667.zip llvm-0bae93771d5589f69b79c3e3f6d71d69b8dd6667.tar.gz llvm-0bae93771d5589f69b79c3e3f6d71d69b8dd6667.tar.bz2 |
s/setGenerator/addGenerator/ in the JIT docs. NFC
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r-- | llvm/docs/tutorial/BuildingAJIT1.rst | 4 | ||||
-rw-r--r-- | llvm/docs/tutorial/BuildingAJIT2.rst | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/tutorial/BuildingAJIT1.rst b/llvm/docs/tutorial/BuildingAJIT1.rst index 33d3689..e51acb48 100644 --- a/llvm/docs/tutorial/BuildingAJIT1.rst +++ b/llvm/docs/tutorial/BuildingAJIT1.rst @@ -142,8 +142,8 @@ usual include guards and #includes [2]_, we get to the definition of our class: CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))), DL(std::move(DL)), Mangle(ES, this->DL), Ctx(std::make_unique<LLVMContext>()) { - ES.getMainJITDylib().setGenerator( - cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL))); + ES.getMainJITDylib().addGenerator( + cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL.getGlobalPrefix()))); } Our class begins with six member variables: An ExecutionSession member, ``ES``, diff --git a/llvm/docs/tutorial/BuildingAJIT2.rst b/llvm/docs/tutorial/BuildingAJIT2.rst index 574cdf1..ee4e691 100644 --- a/llvm/docs/tutorial/BuildingAJIT2.rst +++ b/llvm/docs/tutorial/BuildingAJIT2.rst @@ -76,8 +76,8 @@ apply to each Module that is added via addModule: TransformLayer(ES, CompileLayer, optimizeModule), DL(std::move(DL)), Mangle(ES, this->DL), Ctx(std::make_unique<LLVMContext>()) { - ES.getMainJITDylib().setGenerator( - cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL))); + ES.getMainJITDylib().addGenerator( + cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL.getGlobalPrefix()))); } Our extended KaleidoscopeJIT class starts out the same as it did in Chapter 1, |