back.rtlil: attach source locations to switches, not processes.
authorwhitequark <cz@m-labs.hk>
Mon, 8 Jul 2019 09:09:40 +0000 (09:09 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 8 Jul 2019 09:10:09 +0000 (09:10 +0000)
commit240ac725127497c3ff4f40dd475315da439059c6
tree1cdb3ac6fcf734a1d62b0fb917c1557f0b095fa1
parent02b479f72e9f5a073bdc37565a7a3e95d42b695b
back.rtlil: attach source locations to switches, not processes.

This effectively reverts and reimplements half of commit 82903e49.
I was confused and did not realize that RTLIL does, in fact, have
attributes on switches.

After this commit, processes no longer have any source locations.
This is semantically fine, as the processes we emit are purely
artificial (because of LHS grouping), but I have not checked how
downstream tooling handles this.
nmigen/back/rtlil.py