From 3960ffe231dc0856e45b2fc774908919c08a323c Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Fri, 12 Jun 2020 12:01:21 -0700 Subject: [PATCH] Update Kaleidoscope tutorial inline code Reported on IRC, the tutorial code at the bottom of the page correctly namespaces the FunctionPassManager, but the as-you-go code does not. This patch adds the namespace to those. --- docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst index 85c233c9d3d..78aa31b30cd 100644 --- a/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst +++ b/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst @@ -142,7 +142,7 @@ for us: TheModule = std::make_unique("my cool jit", TheContext); // Create a new pass manager attached to it. - TheFPM = std::make_unique(TheModule.get()); + TheFPM = std::make_unique(TheModule.get()); // Do simple "peephole" optimizations and bit-twiddling optzns. TheFPM->add(createInstructionCombiningPass()); @@ -275,7 +275,7 @@ We also need to setup the data layout for the JIT: TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); // Create a new pass manager attached to it. - TheFPM = std::make_unique(TheModule.get()); + TheFPM = std::make_unique(TheModule.get()); ... The KaleidoscopeJIT class is a simple JIT built specifically for these