aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2020-06-12 12:01:21 -0700
committerErich Keane <erich.keane@intel.com>2020-06-12 12:02:35 -0700
commit884fb45ed2aaa053fa76ca8ffa3c9a9ca595bd65 (patch)
treeed888fd19eced38ed849060b4e564f5856476a04 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent9c2c698fd4847bd0e9fd03059ec46f130e7641e8 (diff)
downloadllvm-884fb45ed2aaa053fa76ca8ffa3c9a9ca595bd65.zip
llvm-884fb45ed2aaa053fa76ca8ffa3c9a9ca595bd65.tar.gz
llvm-884fb45ed2aaa053fa76ca8ffa3c9a9ca595bd65.tar.bz2
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.
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
index 85c233c..78aa31b 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
@@ -142,7 +142,7 @@ for us:
TheModule = std::make_unique<Module>("my cool jit", TheContext);
// Create a new pass manager attached to it.
- TheFPM = std::make_unique<FunctionPassManager>(TheModule.get());
+ TheFPM = std::make_unique<legacy::FunctionPassManager>(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<FunctionPassManager>(TheModule.get());
+ TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get());
...
The KaleidoscopeJIT class is a simple JIT built specifically for these