gnu/gcc/c26a3a7461a511b14d7ae1090a757e3616aced21 gccrs: move Drop helpers to separate files
Refactor helper code into separate rust-compile-drop files.
This keeps the Drop-related logic in one place.
gcc/rust/ChangeLog:
* Make-lang.in: Add rust-compile-drop.o.
* backend/rust-compile-block.cc (compile_drop_call): Move to CompileDrop.
(CompileBlock::visit): Use CompileDrop to emit scope drop calls.
* backend/rust-compile-context.h (struct DropCandidate): Move to rust-compile-drop.h.
* backend/rust-compile-pattern.cc (type_has_drop_impl): Move to CompileDrop.
(CompilePatternLet::visit): Use CompileDrop to check Drop impls.
* backend/rust-compile-drop.cc: New file.
* backend/rust-compile-drop.h: New file.
Signed-off-by: Lishin <lishin1008@gmail.com>
6 files changed