Re: [swift-dev] Problem in parsing SIL

2016-06-22 Thread Mikio Takeuchi via swift-dev
Thanks Slava, Joe, and Jordan. With -frontend flag, I was able to parse classdecl.sil. However, I still have a problem with another very simple Swift source code which declares a value initialized with an integer literal. I am wondering if it is possible to compile some non-trivial Swift code to

Re: [swift-dev] Problem in parsing SIL

2016-06-21 Thread Jordan Rose via swift-dev
> On Jun 21, 2016, at 14:10, Joe Groff via swift-dev > wrote: > > >> On Jun 21, 2016, at 2:03 PM, Slava Pestov via swift-dev >> wrote: >> >> Hi Mikio, >> >> Try this: >> >> swiftc -frontend -emit-silgen classdecl.swift > classdecl.sil >> swiftc -parse-sil classdecl.sil >> >> I'm not sure

Re: [swift-dev] Problem in parsing SIL

2016-06-21 Thread Joe Groff via swift-dev
> On Jun 21, 2016, at 2:03 PM, Slava Pestov via swift-dev > wrote: > > Hi Mikio, > > Try this: > > swiftc -frontend -emit-silgen classdecl.swift > classdecl.sil > swiftc -parse-sil classdecl.sil > > I'm not sure why -emit-silgen sometimes emits type declarations and other > times not. The o

Re: [swift-dev] Problem in parsing SIL

2016-06-21 Thread Slava Pestov via swift-dev
Hi Mikio, Try this: swiftc -frontend -emit-silgen classdecl.swift > classdecl.sil swiftc -parse-sil classdecl.sil I'm not sure why -emit-silgen sometimes emits type declarations and other times not. The only difference I can see is what without the -frontend flag, the driver passes in -primary