diff options
author | Mike Urbach <mikeurbach@gmail.com> | 2020-09-23 18:01:39 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2020-09-23 18:33:39 +0000 |
commit | d14cfe10341681d18edf05ac98da2c5241b0864e (patch) | |
tree | 0be68c34d800f7789e4715e495c01a2d97c43427 /lldb/source/Commands/CommandObjectScript.cpp | |
parent | 11a75e6c92c9bde26f3c925b25135c2461afac1c (diff) | |
download | llvm-d14cfe10341681d18edf05ac98da2c5241b0864e.zip llvm-d14cfe10341681d18edf05ac98da2c5241b0864e.tar.gz llvm-d14cfe10341681d18edf05ac98da2c5241b0864e.tar.bz2 |
[mlir][OpFormatGen] Update "custom" directives for attributes.
This tweaks the generated code for parsing attributes with a custom
directive to call `addAttribute` on the `OperationState` directly,
and adds a newline after this call. Previously, the generated code
would call `addAttribute` on the `OperationState` field `attributes`,
which has no such method and fails to compile. Furthermore, the lack
of newline would generate code with incorrectly formatted single line
`if` statements. Added tests for parsing and printing attributes with
a custom directive.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D87860
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions