diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-01-25 01:00:03 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-09-27 02:17:34 +0200 |
| commit | 279a25bad3a6868a1fac46501df8311e37eb72a0 (patch) | |
| tree | c61fbb553e8c251cd67f28e65fd4ff3166d923ff /parse.h | |
| parent | 7aeb06b4bff797da4ea85a18738a2fd1f660d744 (diff) | |
| download | sparse-dev-279a25bad3a6868a1fac46501df8311e37eb72a0.tar.gz | |
asm: use a specific struct for asm operands
Before commit 756731e9 ("use a specific struct for asm operands")
ASM operands where stored as a list of n times 3 expressions.
After this commit, the triplets where stored inside a single
expression of type EXPR_ASM_OPERAND.
However, while this improved the parsing and use of ASM operands
it needlessly reuse 'struct expression' for something that is not
an expression at all.
Fix this by really using a specific struct for ASM operands.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'parse.h')
| -rw-r--r-- | parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,8 +106,8 @@ struct statement { }; struct /* asm */ { struct expression *asm_string; - struct expression_list *asm_outputs; - struct expression_list *asm_inputs; + struct asm_operand_list *asm_outputs; + struct asm_operand_list *asm_inputs; struct expression_list *asm_clobbers; struct symbol_list *asm_labels; }; |
