[swift-dev] Swiftc and -parse-sil?

Alex Blewitt alblue at apple.com
Tue Oct 18 05:43:43 CDT 2016


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 ';'
sil_stage canonical
         ^
         ;
<stdin>:1:1: error: use of unresolved identifier 'sil_stage'
sil_stage canonical
^~~~~~~~~
<stdin>:1:11: error: use of unresolved identifier 'canonical'
sil_stage canonical
          ^~~~~~~~~
A similar message was posted to the list at the end of last year, indicating that it should work: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151228/000615.html 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?

Alex 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161018/0feb9c9f/attachment.html>


More information about the swift-dev mailing list