[PATCH] D60369: Fix missing arguments in tutorial
Sajjad Heydari via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 6 15:32:45 PDT 2019
MCSH created this revision.
MCSH added reviewers: hans, djasper.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In tutorial "8. Kaleidoscope: Compiling to Object Code" a call to `TargetMachine->addPassesToEmitFile(pass, dest, FileType)` is missing nullptr as its 3rd value.
Repository:
rL LLVM
https://reviews.llvm.org/D60369
Files:
trunk/docs/tutorial/LangImpl08.rst
Index: trunk/docs/tutorial/LangImpl08.rst
===================================================================
--- trunk/docs/tutorial/LangImpl08.rst
+++ trunk/docs/tutorial/LangImpl08.rst
@@ -157,7 +157,7 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60369.194036.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190406/161f06c2/attachment.bin>
More information about the llvm-commits
mailing list