Commit Graph

71 Commits

Author SHA1 Message Date
Greg Parker
b2f3b307fa Fix memory leak in NSString->String conversion.
Swift SVN r8872
2013-10-03 04:09:22 +00:00
Greg Parker
1a243380af Stop using swift-mangled names directly.
Swift SVN r8871
2013-10-03 04:08:28 +00:00
Doug Gregor
100bcdb9e6 Silence -Wunused warning in Release builds.
Swift SVN r8835
2013-10-02 04:51:48 +00:00
Greg Parker
05cbbf1229 Clean up BridgeNSString.mm. Fix bug in Unicode string conversion.
Swift SVN r8834
2013-10-02 03:18:31 +00:00
Greg Parker
720dab7b95 Separate non-String code from BridgeNSString.mm.
Swift SVN r8818
2013-10-01 21:49:03 +00:00
Argyrios Kyrtzidis
f0773bcba1 Rename '__subscript' -> 'subscript'.
Since 'subscript' is a keyword, it cannot conflict with a function name.

Swift SVN r8787
2013-09-30 19:17:29 +00:00
Greg Parker
974f1e4ea9 Clean up -force_load and linkage of libswift_runtime.a. Fixes test Interpreter/Union.swift.
Swift SVN r8398
2013-09-18 06:28:53 +00:00
Greg Parker
db0cf2518a Split Foundation.swift because NSRect is not in Foundation on iOS.
Swift SVN r8246
2013-09-14 06:15:09 +00:00
Greg Parker
d3d00c3456 Use OS names -darwin / -darwin_ios / -darwin_sim to match build_llvm better.
Swift SVN r8245
2013-09-14 06:00:52 +00:00
Greg Parker
8e13188209 Consolidate some build flags for .swift files. Add cross-compilation support.
Swift SVN r8181
2013-09-13 01:51:48 +00:00
Greg Parker
63ecd5c9d1 Add UIKit module.
Swift SVN r8178
2013-09-13 01:39:54 +00:00
Joe Groff
19fb7d6b64 runtime: Allocate refcounted storage for swift_NSStringToString.
Instead of letting swift_NSStringToString leak malloced memory, use swift_allocPOD to allocate storage for the converted String, and stash the heap object into the created string.

Swift SVN r7872
2013-09-03 22:27:40 +00:00
Jordan Rose
45fba0438f Autoconf build: add missing source file to swiftObjectiveC library.
Swift SVN r7592
2013-08-26 21:05:37 +00:00
Jordan Rose
3e992a64fa Use -module-link-name to encode library names in standard library modules.
...which allows us to drop the hardcoded logic to load specific libraries
in immediate modes.

Swift SVN r7585
2013-08-26 18:57:50 +00:00
Jordan Rose
940d53c864 Fix definition of "nil": it has to be null, not a default-initialized NSObject.
This ended up being easiest with a runtime function. I couldn't push this
into the standard library because the standard library doesn't know about
NSObject, and I couldn't compile the ObjectiveC module as -parse-stdlib
because it uses standard library types and doesn't otherwise know how to
find the "swift" module.

Swift SVN r7581
2013-08-26 18:57:45 +00:00
Adrian Prantl
97cdb29f5d Turn on (swift) debug symbols for debug builds. This gives us a bunch of
additional test coverage for free.

Swift SVN r7468
2013-08-22 18:36:05 +00:00
Jordan Rose
bee99803b2 Build modules alongside object files for the standard library.
...rather than as a separate step. This avoids duplicating Parse and Sema
work for these. (This is the new and correct version of r7377.)

Also, remove leftover code for building "swift.swift" and friends in lieu
of proper modules. We're not going back to those days. :-)

Swift SVN r7420
2013-08-21 20:15:00 +00:00
Jordan Rose
beb743aa53 [runtime] Push swift_getObjectType down into the runtime.
It's used for class-bounded protocols, not just Foundation objects.
No test because I couldn't figure out how to write a non-compilation test.

Swift SVN r7367
2013-08-20 20:37:00 +00:00
Jordan Rose
2341903bb0 [Makefiles] Convert autoconf build to use modules.
Note that if you already have an autoconf build, you will need to erase
build/*/lib/*.swift (the first * being "all configurations").

Swift SVN r6534
2013-07-24 00:01:47 +00:00
Argyrios Kyrtzidis
341962ce92 [CMake] Introduce add_swift_compiler_flags() and add_swift_optimization_flags() to reduce copy-pasting.
Swift SVN r6342
2013-07-18 01:12:53 +00:00
Dmitri Hrybenko
77e43c2a1a Splitting the standard library: move objc -> stdlib/objc
Swift SVN r5883
2013-06-28 22:15:07 +00:00