Commit Graph

60 Commits

Author SHA1 Message Date
Nadav Rotem
3e8c871c6a Emit calls to swift_willThrow as part of SILGen using a builtin.
Calls to willThrow are marked as read-none so that the optimizer can remove
them. The willThrow builtin is still generated for all throw/rethrow sites,
but I plan to look at this next.

rdar://20356658

Swift SVN r27877
2015-04-28 18:36:22 +00:00
Dmitri Hrybenko
986f4ce464 Make errors.sil test more strict.
Swift SVN r27728
2015-04-26 00:08:04 +00:00
Ted Kremenek
c3c5eeda48 Fix test to work on iOS.
Swift SVN r27719
2015-04-25 20:02:08 +00:00
Nadav Rotem
9b2b75b859 IRGen: Insert a call to swift_willThrow to allow lldb to place a breakpoint.
rdar://20356658.

Swift SVN r27710
2015-04-24 22:09:15 +00:00
Joe Groff
567e07feda Make test/IRGen/errors.sil runtime-agnostic.
Swift SVN r27546
2015-04-22 00:45:14 +00:00
Joe Groff
c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00
Joe Groff
768420d33b IRGen/Runtime: Give ErrorType its own retain/release entry points.
Some future-proofing to let us change ErrorType's reference counting in the future, or to use various tagged pointer optimizations in its representation.

Swift SVN r27213
2015-04-10 18:54:16 +00:00
John McCall
dab7302d7c Finish wiring up try_apply in IRGen.
Swift SVN r26821
2015-04-01 21:08:25 +00:00
Arnold Schwaighofer
50393fa7a6 Restrict IRGen test to x86_64 only
errors.sil is failing on the iphonesimulator.

rdar://20339923

Swift SVN r26701
2015-03-29 14:10:41 +00:00
John McCall
1ffb87bb1f Implement a 'throw' instruction in SIL.
Swift SVN r26668
2015-03-28 02:00:20 +00:00