Skip to content

Commit eea2176

Browse files
authored
[Doc] update the usage of opt with mem2reg pass in tutorial (#76282)
The current command will raise an error: > The `opt -passname` syntax for the new pass manager is not supported, please use `opt -passes=<pipeline>` (or the `-p` alias for a more concise version). Update the usage now.
1 parent 1479fe8 commit eea2176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ example through the pass, for example, you'll get:
182182

183183
.. code-block:: bash
184184
185-
$ llvm-as < example.ll | opt -mem2reg | llvm-dis
185+
$ llvm-as < example.ll | opt -passes=mem2reg | llvm-dis
186186
@G = weak global i32 0
187187
@H = weak global i32 0
188188

0 commit comments

Comments
 (0)