s/setGenerator/addGenerator/ in the JIT docs. NFC

GitOrigin-RevId: 0bae93771d5589f69b79c3e3f6d71d69b8dd6667
diff --git a/docs/ORCv2.rst b/docs/ORCv2.rst
index 4c3974b..c5bc189 100644
--- a/docs/ORCv2.rst
+++ b/docs/ORCv2.rst
@@ -730,7 +730,7 @@
     const DataLayout &DL = getDataLayout();
     auto &JD = ES.createJITDylib("main");
 
-    JD.setGenerator(DynamicLibrarySearchGenerator::Load("/path/to/lib"
+    JD.addGenerator(DynamicLibrarySearchGenerator::Load("/path/to/lib"
                                                         DL.getGlobalPrefix()));
 
     // IR added to JD can now link against all symbols exported by the library
@@ -753,7 +753,7 @@
 
     // Use GetForCurrentProcess with a predicate function that checks the
     // allowed list.
-    JD.setGenerator(
+    JD.addGenerator(
       DynamicLibrarySearchGenerator::GetForCurrentProcess(
         DL.getGlobalPrefix(),
         [&](const SymbolStringPtr &S) { return AllowList.count(S); }));
diff --git a/docs/tutorial/BuildingAJIT1.rst b/docs/tutorial/BuildingAJIT1.rst
index 33d3689..e51acb4 100644
--- a/docs/tutorial/BuildingAJIT1.rst
+++ b/docs/tutorial/BuildingAJIT1.rst
@@ -142,8 +142,8 @@
           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/docs/tutorial/BuildingAJIT2.rst b/docs/tutorial/BuildingAJIT2.rst
index 574cdf1..ee4e691 100644
--- a/docs/tutorial/BuildingAJIT2.rst
+++ b/docs/tutorial/BuildingAJIT2.rst
@@ -76,8 +76,8 @@
           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,