about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-02 10:35:23 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-03 09:06:26 +1000
commit3a3a15d753649c1701953ecaee6e814497903d73 (patch)
treec016ddeeb92992d32a2af820e18b7eb60364a309 /compiler/rustc_codegen_gcc
parent5ac017e772a28b86170eab7a056feb9e42d557c2 (diff)
downloadrust-3a3a15d753649c1701953ecaee6e814497903d73.tar.gz
rust-3a3a15d753649c1701953ecaee6e814497903d73.zip
Refactor `Frame`.
It is currently an enum and the `tts` and `idx` fields are repeated
across the two variants.

This commit splits it into a struct `Frame` and an enum `FrameKind`, to
factor out the duplication. The commit also renames `Frame::new` as
`Frame::new_delimited` and adds `Frame::new_sequence`. I.e. both
variants now have a constructor.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions