aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2022-02-10 14:24:04 -0800
committerArthur Eubanks <aeubanks@google.com>2022-02-10 15:38:31 -0800
commit2fa87ab52476fcf5554c0e57a555dcc10b8730e1 (patch)
treec00da83e2f49819bca1f0ae48250feae6b623fb7 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent4ef02cba2ef3fdb49c33d014dd8f4034ef9cb4cb (diff)
downloadllvm-2fa87ab52476fcf5554c0e57a555dcc10b8730e1.zip
llvm-2fa87ab52476fcf5554c0e57a555dcc10b8730e1.tar.gz
llvm-2fa87ab52476fcf5554c0e57a555dcc10b8730e1.tar.bz2
[docs] Replace `opt -analyze` with better alternatives.
`opt -analyze` is legacy PM-specific. Show better ways of doing the same thing, generally with some sort of `-passes=print<foo>`. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D119486
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst
index cc7ffe5..b517844 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst
@@ -214,7 +214,7 @@ Kaleidoscope looks like this:
To visualize the control flow graph, you can use a nifty feature of the
LLVM '`opt <https://llvm.org/cmds/opt.html>`_' tool. If you put this LLVM
-IR into "t.ll" and run "``llvm-as < t.ll | opt -analyze -view-cfg``", `a
+IR into "t.ll" and run "``llvm-as < t.ll | opt -passes=view-cfg``", `a
window will pop up <../../ProgrammersManual.html#viewing-graphs-while-debugging-code>`_ and you'll
see this graph: