diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-10-18 15:43:08 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-10-18 16:48:10 -0700 |
commit | 15fefcb9eb3a2b9080b44e3784608597666000ec (patch) | |
tree | cad7c1f7e561acb50eefd82ed5f1c69a21242659 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
parent | cb5a10199b32b5e1104ed36a490be73fa3bdf5ca (diff) | |
download | llvm-15fefcb9eb3a2b9080b44e3784608597666000ec.zip llvm-15fefcb9eb3a2b9080b44e3784608597666000ec.tar.gz llvm-15fefcb9eb3a2b9080b44e3784608597666000ec.tar.bz2 |
[opt] Directly translate -O# to -passes='default<O#>'
Right now when we see -O# we add the corresponding 'default<O#>' into
the list of passes to run when translating legacy -pass-name. This has
the side effect of not using the default AA pipeline.
Instead, treat -O# as -passes='default<O#>', but don't allow any other
-passes or -pass-name. I think we can keep `opt -O#` as shorthand for
`opt -passes='default<O#>` but disallow anything more than just -O#.
Tests need to be updated to not use `opt -O# -pass-name`.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D112036
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions