diff options
-rw-r--r-- | llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst | 2 | ||||
-rw-r--r-- | llvm/docs/tutorial/index.rst | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst index 44a71d807f3..b8056c7b937 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst @@ -159,7 +159,7 @@ pass: legacy::PassManager pass; auto FileType = TargetMachine::CGFT_ObjectFile; - if (TargetMachine->addPassesToEmitFile(pass, dest, FileType)) { + if (TargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) { errs() << "TargetMachine can't emit a file of this type"; return 1; } diff --git a/llvm/docs/tutorial/index.rst b/llvm/docs/tutorial/index.rst index 494cfd0a33a..844623ef215 100644 --- a/llvm/docs/tutorial/index.rst +++ b/llvm/docs/tutorial/index.rst @@ -10,7 +10,9 @@ Kaleidoscope: Implementing a Language with LLVM :glob: :numbered: - LangImpl* +#. `My First Language Frontend with LLVM Tutorial <https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/>`_ + This is the "Kaleidoscope" Language tutorial, showing how to implement + a simple language using LLVM components in C++. Kaleidoscope: Implementing a Language with LLVM in Objective Caml ================================================================= |