diff options
author | Thomas Young <wenzhang5800@gmail.com> | 2021-04-08 10:06:22 +0800 |
---|---|---|
committer | Thomas Young <wenzhang5800@gmail.com> | 2021-04-09 18:10:41 +0800 |
commit | acb0062081056340722e01447d1e266d357e6a17 (patch) | |
tree | 8c3dacc4990ce66d657debdb0a71410c341e911d /gcc/rust/backend | |
parent | 4937562f7ca354dc80369cc2e049c391838537f1 (diff) | |
download | gcc-acb0062081056340722e01447d1e266d357e6a17.zip gcc-acb0062081056340722e01447d1e266d357e6a17.tar.gz gcc-acb0062081056340722e01447d1e266d357e6a17.tar.bz2 |
Add unused code pass
In order to find more examples of dead code we must create liveness variables
and scan after type resolution. In this case, if a function is unused and it calls
another function the 2nd function is now unused since the caller is not used etc.
This is a WIP but demonstrates the pattern we can follow to add more dead code
analysis warnings like rustc does.
Addresses #330
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions