Commit Graph

9 Commits

Author SHA1 Message Date
Dave Abrahams
a89c2e11ae [stdlib] Create shims for CFString access in core
...and use these shims in place of our previous inelegant dispatch
through 'C' code.

Swift SVN r25010
2015-02-05 19:18:31 +00:00
Dmitri Hrybenko
af9515d754 Break a circular dependency between SwiftShims and the Darwin module
stdint.h and stddef.h are shipped with CLang, but they not included in
Clang's module.map, which causes Clang to import libc versions instead
(and Clang's stdint.h is dispatching to libc).  This was causing
hard-to-debug transient failures during incremental rebuilds, like this:

error: module file was created by an older version of the compiler: .../Darwin.swiftmodule

Swift SVN r23230
2014-11-11 02:26:06 +00:00
Dave Abrahams
6c235c83b0 [stdlib] Migrate some @asmnames into SwiftShims
One of them still needs a type declaration change, so an @asmname for it
remains, temporarily.

Swift SVN r22575
2014-10-07 21:40:46 +00:00
Dave Abrahams
b108945c46 [stdlib] Break up shims.h
More things are going to be declared in shims, in part to reduce the use
of @asmname, and we'll want to keep this organized.

Swift SVN r22574
2014-10-07 21:40:45 +00:00
Dave Abrahams
eac8ca27f9 [stdlib] Use a universal empty array buffer
NFC, and no significant performance change expected.  This is part one
of a move to eliminate nil checks from the array implementation.

Swift SVN r22526
2014-10-05 17:55:11 +00:00
Dave Abrahams
b740ad0df9 Revert "[stdlib] Use a universal empty array buffer"
This reverts commit r22495, because it wroke havoc with SIL and the perf
test suite somehow.

Swift SVN r22499
2014-10-03 18:52:11 +00:00
Dave Abrahams
f2f068c3dc [stdlib] Use a universal empty array buffer
NFC, and no significant performance change expected.  This is part one
of a move to eliminate nil checks from the array implementation.

Swift SVN r22495
2014-10-03 16:01:50 +00:00
Dave Abrahams
6eee8e3205 Move HeapObject into the stdlib shim module
Now that we can read definitions directly from "C" headers, stop trying
to maintain a mirror of the HeapObject struct in Swift code in the
standard library.

Swift SVN r14982
2014-03-12 23:48:31 +00:00
Dave Abrahams
91bed93ca5 stdlib: add a stub ObjC root class to force correct bookkeeping in the compiler
Swift SVN r14864
2014-03-10 07:46:03 +00:00