Commit Graph

3348 Commits

Author SHA1 Message Date
Harlan a03ed4384e [Syntax] Add node definition for enums and enum cases (#15196) 2018-03-13 13:11:13 -07:00
Slava Pestov 7415d35f3a Merge pull request #15194 from slavapestov/enable-resilience-again
Enable resilience again
2018-03-12 21:54:14 -07:00
Rintaro Ishizaki 54b28b6cb6 Merge pull request #15152 from omochi/lex-remove-fields
[Parse] Remove unnecessary Lexer fields
2018-03-13 12:19:36 +09:00
mishal_shah 96b695b55c [Update-checkout] Update the swift-4.2-branch to match clang, llvm, and compiler-rt branches 2018-03-12 18:23:37 -07:00
Slava Pestov de4f1f8a66 Re-enable resilience for stdlib and overlays 2018-03-12 15:44:07 -07:00
eeckstein cc983a7afc Revert "Re-enable resilience for stdlib and overlays" 2018-03-12 10:24:33 -07:00
omochimetaru 420291bbad [Syntax] isComment in trivia 2018-03-12 23:08:37 +09:00
Slava Pestov b758621ed4 Re-enable resilience for stdlib and overlays 2018-03-10 00:44:40 -08:00
swift-ci d18d9d8455 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-09 09:38:10 -08:00
Arnold Schwaighofer 1e4f55de8d Merge pull request #15046 from aschwaighofer/without_actually_escaping_verification
Implement withoutActuallyEscaping verification
2018-03-09 09:34:06 -08:00
swift-ci d75d744472 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-08 16:38:26 -08:00
Ankit Aggarwal b3b24eb928 [build-script] Add plumbing for llbuild assertions
This adds two flags to the build script to enable/disable assertions in
llbuild: --llbuild-assertions, --no-llbuild-assertions

The default value is taken from the global assertions flag.
2018-03-08 16:22:40 -08:00
swift-ci 70ba111a83 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-08 10:58:04 -08:00
Mishal Shah ad63e140e8 Merge pull request #2476 from shahmishal/master
[Preset] Enable optimized test for Linux package.
2018-03-08 10:53:35 -08:00
Bob Wilson b5b4b7946c Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-07 16:59:30 -08:00
Xi Ge e61c8958fd SwiftSyntax: simply trivia implementation on the Swift side. 2018-03-07 16:19:09 -08:00
Arnold Schwaighofer 5940796cc1 SIL: Add an is_escaping_closure instruction
Will be used to verify that withoutActuallyEscaping's block does not
escape the closure.

``%escaping = is_escaping_closure %closure`` tests the reference count. If the
closure is not uniquely referenced it prints out and error message and
returns true. Otherwise, it returns false. The returned result can be
used with a ``cond_fail %escaping`` instruction to abort the program.

rdar://35525730
2018-03-07 08:56:00 -08:00
swift-ci f6bc6e7d4a Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 18:17:56 -08:00
swift-ci 19cf4191d2 Merge pull request #15029 from gottesmm/pr-e40fbacf66d0fc3655419bf3cb1bd0ca8b83fa5b 2018-03-06 18:05:52 -08:00
swift-ci cdff736edc Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 17:58:02 -08:00
Xi Ge 94c3f55117 libSyntax: extract meta-information of trivia kinds to syntax_gyb_support. NFC
The existing libSyntax infrastructure uses external python
dictionaries to share logic between C++ and Swift implementations.
This patch teaches trivia kinds to adapt to this infrastructure
 as well.
2018-03-06 17:45:43 -08:00
Michael Gottesman 37f34cc624 [lldb-with-tools] Rename create_swift_disassemble_viewcfg => disassemble_asm_cfg.
Now the python method matches the name used on the lldb command line.
2018-03-06 16:40:13 -08:00
swift-ci 44761ddc84 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 13:38:19 -08:00
Ankit Aggarwal 4a988dc0c4 [build-script] Disable building llbuild Swift bindings
The CMake support in llbuild is finding the compiler in the system
instead of the build products. This causes build errors if Swift is old
on a system.
2018-03-06 12:27:37 -08:00
swift-ci 7033af151e Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 08:58:22 -08:00
Jordan Rose 5eb6864406 build-presets.ini: Add a PR-test-like preset with resilience enabled (#14946)
...so that we can test PRs with resilience enabled.
("PR-test-like" = the preset used by "Please test macOS platform" by default)
2018-03-06 08:55:23 -08:00
swift-ci f5ab8b5a26 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 02:17:56 -08:00
Michael Gottesman 879808474b [lldb-with-tools] Add disassemble-to-file.
Sometimes it is really useful to be able to dump the disassembly from lldb into
a file so that one can work with the disassembly in an editor. The disassemble
command in lldb does not provide such facility today. So this lldb function in
the lldb toolbox provides such a facility.
2018-03-06 02:05:22 -08:00
swift-ci 96a2ce33e4 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-05 16:18:20 -08:00
Adrian Prantl 13a228e98a build-script: pass the LLDB_INCLUDE_TESTS variable through to LLDB 2018-03-05 15:23:23 -08:00
Mishal Shah b863489f6f [Update Checkout] Add support for swift-4.2-branch 2018-03-05 14:11:27 -08:00
swift-ci 2bd78350f5 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-05 10:58:06 -08:00
Ankit Aggarwal a9cc5987cf [build-script] Pass llbuild build type arg to build-script-impl
rdar://38034197 (llbuild may not be building in release mode in the Swift toolchain)
2018-03-05 10:42:39 -08:00
swift-ci a103411dd3 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-04 17:18:15 -08:00
swift-ci 0c1c6d89c1 Merge pull request #14969 from gonzalolarralde/swift-android-arch-variable 2018-03-04 17:06:43 -08:00
swift-ci 06ad3a0f5a Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-04 10:57:58 -08:00
swift-ci 99b6b53fa9 Merge pull request #14955 from nafu/pass-lit-to-xctest 2018-03-04 10:45:49 -08:00
Gonzalo Larralde 13cf3095b7 Replace incorrect HOST variable for the expected hardcoded arch 2018-03-04 13:32:19 -03:00
Fumiya Nakamura f902f5fa05 [SR-1046] Pass lit path argument to xctest explicitly
Resolve https://bugs.swift.org/browse/SR-1046
2018-03-03 15:28:41 +09:00
swift-ci abbca89fbf Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-02 18:19:18 -08:00
Jordan Rose a16d8a73d1 Bump the compiler version to 4.2 (and 3.4) (#13767)
https://swift.org/blog/4-2-release-process/
2018-03-02 18:09:45 -08:00
swift-ci 2f940a89be Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-02 11:59:41 -08:00
Bob Wilson cc06156186 utils: add -lswiftImageInspectionShared to static-executable-args.lnk
This fixes the -static-executable part of the problem reported in
SR-7038 (rdar://problem/37710244).
2018-03-01 18:03:23 -08:00
swift-ci 1386c0e9bc Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-01 15:59:52 -08:00
Saleem Abdulrasool d57b41e717 gyb: alter windows path for filename substitutions
When building on Windows, the filepath contains `\` as the path
separator.  Substitute `/` for the path separator prior to replacement.
This allows clang to properly compile the source file.  Windows supports
both as a path separator and this matches what clang does by default for
the filepaths when preprocessing.  This allows gyb generated files to
build on Windows.
2018-03-01 12:22:07 -08:00
Adrian Prantl 0252cb8835 build-script: Pass --build-dir to LLDB's dotest.py 2018-02-28 18:58:05 -08:00
Saleem Abdulrasool 420328b886 Merge pull request #14728 from compnerd/icu-arch
build: explicitly state arch for ICU
2018-02-28 10:21:08 -08:00
Saleem Abdulrasool 4cd9d2626a Merge pull request #14835 from lanza/skinnypaths.swift
Add a SWIFT_BUILD_DIR variable to pass as an arugment to xctest/build_script.py
2018-02-27 18:57:50 -08:00
swift-ci 68be7927eb Merge pull request #14830 from graydon/typo-fix-plaform-platform 2018-02-26 11:58:21 -08:00
Ross Bayer 4edb8d9baa [build-script] Presets Module (#14422)
* Implemented a presets module which includes a more robust and easy to understand parser. Moved the swift-sdks migration code to a new migration module and added testing for both the presets and migration modules. Also converted build-script to use the new presets parser.

* Switched the expansion algorithm to resolve mixins in-place (little known feature) and also changed the parser to skip all non-preset sections. Tests are included for these two behaviors.

* Re-worked the presets error hierarchy to have more descriptive and information packed exception classes. Also re-worked the PresetParser to catch duplicate preset declarations and duplicate options in a single preset. There's some special shim-code to handle the disconnect between the Python 2 ConfigParser module and the Python 3 update which adds DuplicateOptionError.
2018-02-26 11:26:22 -08:00