David Farler
8a5ed405bf
Make var parameters an error for Swift 3
...
This finishes up revisions to SE-0003 - only var function parameters
are disallowed for Swift 3.
2016-01-30 12:39:17 -08:00
David Farler
3f635d04c7
Reinstante var bindings in refutable patterns, except function parameters.
...
This reverts commits: b96e06da44 ,
8f2fbdc93a ,
93b6962478 ,
64024118f4 ,
a759ca9141 ,
3434f9642b ,
9f33429891 ,
47c043e8a6 .
This commit leaves 'var' on function parameters as a warning to be
merged into Swift 2.2. For Swift 3, this will be an error, to be
converted in a follow-up.
2016-01-29 15:27:08 -08:00
David Farler
8f2fbdc93a
Make function parameters and refutable patterns always immutable
...
All refutable patterns and function parameters marked with 'var'
is now an error.
- Using explicit 'let' keyword on function parameters causes a warning.
- Don't suggest making function parameters mutable
- Remove uses in the standard library
- Update tests
rdar://problem/23378003
2015-11-09 16:56:13 -08:00
Michael Gottesman
6d74962918
Adapt all DebugInfo testcases to the new upstream LLVM metadata format.
...
Swift SVN r31813
2015-09-09 04:37:34 +00:00
Adrian Prantl
4f11ecc1da
Get rid of Int in the debug info tests and preform some general cleanup.
...
<rdar://problem/20856296> Extinguish 'Int' from DebugInfo tests
Swift SVN r31177
2015-08-12 18:16:43 +00:00
Joe Groff
a321938d34
IRGen: Peephole (copy_addr to [initialization] (alloc_stack)) operations to use initializeBuffer value witnesses.
...
This saves a value witness call in the common case where a generic local variable or temporary is initialized from another value.
Swift SVN r29366
2015-06-12 16:59:14 +00:00
Joe Groff
2d3eba9e0d
IRGen: Reuse value witness table projections.
...
Don't project every value witness from the metadata every time we need one; this wastes code size in a way LLVM can't really optimize since it doesn't know the metadata is immutable. The code size wins on the standard library are disappointingly small (stdlib only shrinks by 4KB), but this makes generic IR a lot more compact and easier to read.
Swift SVN r28095
2015-05-03 05:00:40 +00:00
Dmitri Hrybenko
0fce5c7b4e
tests: remove uses of println() that are not relevant to the tests
...
Swift SVN r28016
2015-05-01 03:35:50 +00:00
Duncan Exon Smith
c6d42db070
Adapt to MD* => DI* renaming of debug info types
...
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the
final step of rdar://problem/20434113.
Swift SVN r27925
2015-04-29 21:40:21 +00:00
Duncan Exon Smith
093eb3c365
DebugInfo: Hand-update testcases after LLVM r231082
...
Update debug info testcases after moving the new hierarchy into place in
upstream LLVM r231082.
rdar://problem/19720042
Swift SVN r25715
2015-03-03 19:15:31 +00:00
Dmitri Hrybenko
3b04d1b013
tests: reorganize tests so that they actually use the target platform
...
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504
2015-01-19 06:52:49 +00:00
Mark Lacey
94d907543a
Do not try to match the function attribute in this debug info test.
...
Hopefully this fixes some of the current build failures.
Swift SVN r24294
2015-01-09 02:52:40 +00:00
Adrian Prantl
162bc8d24c
Updated testcases for upstream assembler changes.
...
Swift SVN r23942
2014-12-15 19:39:21 +00:00
Graham Batty
83f27a8af7
Revert "Mark tests that don't pass on linux as XFAIL."
...
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.
Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe
Mark tests that don't pass on linux as XFAIL.
...
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Adrian Prantl
d769498ccd
Update for upstream LLVM API change.
...
Swift SVN r22456
2014-10-02 01:33:24 +00:00
Ted Kremenek
d075f06573
Require a minimum deployment target of iOS 7 or OSX 10.9
...
Implements <rdar://problem/17532113>
Swift SVN r19451
2014-07-02 06:23:38 +00:00
Ted Kremenek
fad874708e
Adjust test cases.
...
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Adrian Prantl
8e86f3d8b4
When emitting debug intrinsics for generic arguments, make sure they point
...
to the cop[ied]_addr and not to the incoming value.
Fixes <rdar://problem/15606136> Incorrect DWARF for arguments of generic types
Swift SVN r11203
2013-12-12 19:29:03 +00:00