]> git.ipfire.org Git - thirdparty/gcc.git/commit
borrowck: BIR dump
authorJakub Dupak <dev@jakubdupak.com>
Wed, 18 Oct 2023 20:36:38 +0000 (22:36 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 26 Oct 2023 15:05:49 +0000 (15:05 +0000)
commitf5b9bab688ae04d84ba83269b21e80d671453e45
tree58a441e88c7ac6ce7d9349864e4db5048eb1a6ef
parent9a45588f39d9710f2d7b5dec2e75d00531e7436d
borrowck: BIR dump

gcc/rust/ChangeLog:

* Make-lang.in: Build BIR dump.
* checks/errors/borrowck/rust-borrow-checker.cc (mkdir_wrapped): Cross-platform mkdir.
(dump_function_bir): Save dump to file.
(BorrowChecker::go): Run dump during borrowck.
* checks/errors/borrowck/rust-bir-dump.cc: New file.
* checks/errors/borrowck/rust-bir-dump.h: New file.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/Make-lang.in
gcc/rust/checks/errors/borrowck/rust-bir-dump.cc [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-dump.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-borrow-checker.cc