summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst
index a794b46c71a..bd730fea693 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst
@@ -157,7 +157,7 @@ pass:
.. code-block:: c++
legacy::PassManager pass;
- auto FileType = TargetMachine::CGFT_ObjectFile;
+ auto FileType = CGFT_ObjectFile;
if (TargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) {
errs() << "TargetMachine can't emit a file of this type";
OpenPOWER on IntegriCloud