summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-04-12 08:23:28 +0000
committerHans Wennborg <hans@hanshq.net>2019-04-12 08:23:28 +0000
commit9b795b3c049c64447c3599ec2e28567fe8752ae6 (patch)
treea85e22c603f5676e5e0dd8bead311c66b78fc647 /llvm/docs
parent539b7e65b450f899a1550e8333e817028a3f093f (diff)
downloadbcm5719-llvm-9b795b3c049c64447c3599ec2e28567fe8752ae6.tar.gz
bcm5719-llvm-9b795b3c049c64447c3599ec2e28567fe8752ae6.zip
Fix missing arguments in tutorial
In tutorial "8. Kaleidoscope: Compiling to Object Code" a call to TargetMachine->addPassesToEmitFile(pass, dest, FileType) is missing nullptr as its 3rd value. Patch by Sajjad Heydari! Differential revision: https://reviews.llvm.org/D60369 llvm-svn: 358267
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/tutorial/LangImpl08.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/LangImpl08.rst b/llvm/docs/tutorial/LangImpl08.rst
index da4e60f84b8..4f28a2adc64 100644
--- a/llvm/docs/tutorial/LangImpl08.rst
+++ b/llvm/docs/tutorial/LangImpl08.rst
@@ -157,7 +157,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;
}
OpenPOWER on IntegriCloud