hdl.ir: make UnusedElaboratable a real warning.
authorwhitequark <cz@m-labs.hk>
Wed, 10 Jul 2019 12:46:46 +0000 (12:46 +0000)
committerwhitequark <cz@m-labs.hk>
Wed, 10 Jul 2019 12:46:54 +0000 (12:46 +0000)
commit810c38afbb4c5ba807024f23daa17f5329e68367
tree6d675a5986ece1a870e7fafbbb89bc9d74daa766
parentb457bacb409c55d3cf8bfb8608126e8d3ce75a37
hdl.ir: make UnusedElaboratable a real warning.

Before this commit, it was a print statement, and therefore, command
interpreter options like -Wignore did not affect it. There is no API
to access the warning filter list, so it was turned into a real
warning; and further, since Python 3.6, tracemalloc can be used
as a standard method to display traceback to allocation site instead
of the ad-hoc traceback logic that was used in Elaboratable before.
nmigen/hdl/ir.py