The swift compiler has an option '-parse-sil' which could previously be used to
parse SIL code. However, it looks like the swift compiler is assuming it's
still Swift code:
$ echo "sil_stage canonical" | xcrun swiftc -parse-sil -
<stdin>:1:10: error: consecutive statements on a line must be separated by ';'
<stdin>:1:1: error: use of unresolved identifier 'sil_stage'
<stdin>:1:11: error: use of unresolved identifier 'canonical'
A similar message was posted to the list at the end of last year, indicating
that it should work:
but no indication that there was a bug raised or fixed at the time.
Is this a known issue or should I rase a bug?
swift-dev mailing list