Commit Graph

1759 Commits

Author SHA1 Message Date
Saleem Abdulrasool
f5aa95b381 Revert "Add -prefix-serialized-debugging-options" (#39544)
Reverts #39138

This is causing a failure on Windows: https://ci-external.swift.org/job/oss-swift-windows-x86_64-vs2019/6659/consoleText
2021-10-01 11:19:44 -07:00
swift-ci
c51550f30e Merge remote-tracking branch 'origin/main' into rebranch 2021-09-30 15:11:41 -07:00
swift_jenkins
390be2244b Merge remote-tracking branch 'origin/main' into next 2021-09-30 14:20:59 -07:00
Richard Howell
58d67be645 Add ClangImporterOptions::getRemappedExtraArgs
This commit adds a function to remap the clang arguments passed
during compilation. This is intented to be shared across the
Swift compiler and LLDB to apply path remapping for debug info
paths.
2021-09-30 08:13:28 -07:00
swift_jenkins
31a5a3401d Merge remote-tracking branch 'origin/main' into next 2021-09-27 16:41:29 -07:00
Doug Gregor
f4aa6266df arm64 macOS was introduced with version Swift
Generalize the check from arm64e to also include arm64. Fixes
rdar://83502661.
2021-09-27 14:05:25 -07:00
swift_jenkins
88460388ae Merge remote-tracking branch 'origin/main' into next 2021-09-27 09:21:05 -07:00
swift-ci
899723065c Merge remote-tracking branch 'origin/main' into rebranch 2021-09-27 09:13:14 -07:00
Alastair Houghton
8be084f30a Merge pull request #39187 from al45tair/problem/79725187
[Demangler] Improve remangler error handling
2021-09-27 17:03:49 +01:00
swift_jenkins
d572e4125f Merge remote-tracking branch 'origin/main' into next 2021-09-24 11:01:15 -07:00
swift-ci
220daa4c05 Merge remote-tracking branch 'origin/main' into rebranch 2021-09-24 10:53:33 -07:00
Kuba Mracek
b073df2c6d 64-bit watchOS should imply a 5.3 minimum version of the Swift runtime 2021-09-23 18:02:56 -07:00
swift_jenkins
392072a249 Merge remote-tracking branch 'origin/main' into next 2021-09-21 21:21:27 -07:00
swift-ci
5f454ca504 Merge remote-tracking branch 'origin/main' into rebranch 2021-09-21 21:13:29 -07:00
Kuba (Brecka) Mracek
942b0e8a63 The concurrency compat library should not be unconditionally used in arm64e builds (#39385) 2021-09-21 21:01:21 -07:00
swift_jenkins
45402f827a Merge remote-tracking branch 'origin/main' into next 2021-09-21 17:01:40 -07:00
swift-ci
4ec5df9a2a Merge remote-tracking branch 'origin/main' into rebranch 2021-09-21 16:53:46 -07:00
Alexis Laferrière
362cacf5a1 [Basic] Update getSwiftRevision to return a StringRef 2021-09-21 10:02:40 -07:00
swift_jenkins
11d6966f09 Merge remote-tracking branch 'origin/main' into next 2021-09-08 14:22:36 -07:00
swift-ci
b627a0c01e Merge remote-tracking branch 'origin/main' into rebranch 2021-09-08 14:13:13 -07:00
Argyrios Kyrtzidis
8c1b3004a4 [Basic/Darwin] Follow the llvm convention of including additional code with .inc extension, instead of .cpp 2021-09-08 09:59:07 -07:00
Alastair Houghton
3f01f853a6 [Demangling] Add error handling to the remangler.
Mangling can fail, usually because the Node structure has been built
incorrectly or because something isn't supported with the old remangler.
We shouldn't just terminate the program when that happens, particularly
if it happens because someone has passed bad data to the demangler.

rdar://79725187
2021-09-06 17:49:09 +01:00
swift-ci
cd7ed018bf Merge remote-tracking branch 'origin/main' into rebranch 2021-09-02 11:56:28 -07:00
swift_jenkins
53ba91d9c8 Merge remote-tracking branch 'origin/main' into next 2021-09-02 11:41:07 -07:00
Varun Gandhi
4a16261c4d [Driver] Update OS versions for rpath checks.
Make sure that we add the appropriate rpaths so that the appropriate
_Concurrency back-deployment library can be picked up.

We don't need to update the Swift driver since it uses the C++ driver
as the source of truth to determine if the relevant rpath should be
added or not.
2021-09-01 15:37:24 -07:00
swift_jenkins
1f9cca4af5 Merge remote-tracking branch 'origin/main' into next 2021-08-18 06:01:16 -07:00
swift-ci
0978b80f2c Merge remote-tracking branch 'origin/main' into rebranch 2021-08-18 05:53:25 -07:00
Arnold Schwaighofer
290ddd79a5 Adjust to LLVM's DarwinSDKInfo.h changes 2021-08-06 11:36:14 -07:00
Arnold Schwaighofer
de0218bf09 Adjust to LLVM's DarwinSDKInfo.h changes 2021-08-05 12:15:22 -07:00
Becca Royal-Gordon
1fbded6629 Allow -swift-version 6 in asserts compilers only
To allow us to start testing language changes tied to a future Swift 6 mode without actually *shipping* a Swift 6 mode to customers who might accidentally use it before it's ready.

This commit also adds parallel tests for a number of already existing (but untested) Swift 6 mode behaviors.
2021-08-03 18:44:49 -07:00
Evan Wilde
42ff140171 llvm::StringRef equals_lower -> equals_insensitive
The `equals_lower` API was replaced with `equals_insensitive` in llvm
commit 2e4a2b8430aca6f7aef8100a5ff81ca0328d03f9 and
3eed57e7ef7da5eda765ccc19fd26fb8dfcd8d41.

Ran git clang-format.

(cherry picked from commit e21e70a6bf)
2021-07-02 10:55:17 -07:00
Evan Wilde
0919c2cd70 StringRef ends/startswith-lower -> insensitive
Updating StringRef startswith and endswith API to use insensitive rather
than lower.

(cherry picked from commit 1b8b39e6de)
2021-07-02 10:55:17 -07:00
Evan Wilde
1b8b39e6de StringRef ends/startswith-lower -> insensitive
Updating StringRef startswith and endswith API to use insensitive rather
than lower.
2021-06-30 11:09:27 -07:00
Evan Wilde
e21e70a6bf llvm::StringRef equals_lower -> equals_insensitive
The `equals_lower` API was replaced with `equals_insensitive` in llvm
commit 2e4a2b8430aca6f7aef8100a5ff81ca0328d03f9 and
3eed57e7ef7da5eda765ccc19fd26fb8dfcd8d41.

Ran git clang-format.
2021-06-30 10:57:47 -07:00
swift_jenkins
250fabfff7 Merge remote-tracking branch 'origin/main' into next 2021-06-24 00:05:16 -07:00
Evan Wilde
8112cda531 Updated F_Text and F_Append
These enum cases were also updated to OF_Text and OF_Append.
2021-06-23 14:29:52 -07:00
Evan Wilde
0aafd09835 F_None was renamed OF_None
This patch updates usages of F_None to OF_None, as LLVM changed that in
commit 3302af9d4c39642bebe64dd60a3aa162fefc44b2.
2021-06-23 10:36:39 -07:00
Fredrik Wieczerkowski
7a73c99510 Migrate VariableTypeCollector to SourceRange
- Add SourceRange::contains and SourceRange::overlaps
- Use SourceRange in VariableTypeCollector
2021-06-21 19:33:52 +02:00
swift_jenkins
06c026efb6 Merge remote-tracking branch 'origin/main' into next 2021-06-06 14:41:13 -07:00
Saleem Abdulrasool
25f437e17d mark some switches as covered (NFCI)
Unfortunately, MSVC does not detect covered switches as clang.  Mark
some of the switches as covered to avoid an unnecessary warning from
MSVC.
2021-06-05 15:30:25 -07:00
swift_jenkins
57fb32f1c0 Merge remote-tracking branch 'origin/main' into next 2021-06-01 21:21:44 -07:00
Doug Gregor
b57a73ab42 [Concurrency ABI] Add standard substitutions for _Concurrency types.
Introduce a second level of standard substitutions to the mangling,
all of the form `Sc<character>`, and use it to provide standard
substitutions for most of the _Concurrency types.

This is a precursor to rdar://78269642 and a good mangling-size
optimization in its own right.
2021-06-01 17:15:02 -07:00
swift_jenkins
78136cc208 Merge remote-tracking branch 'origin/main' into next 2021-05-24 23:41:08 -07:00
Alex Hoppen
80d3dedb08 Merge pull request #37450 from ahoppen/pr/count-instructions-for-completion-request
[SourceKit] Report number of instructions executed since SourceKit was started in statistics request
2021-05-25 08:39:43 +02:00
swift_jenkins
dce6646184 Merge remote-tracking branch 'origin/main' into next 2021-05-22 15:41:27 -07:00
Becca Royal-Gordon
a6a9dfede0 Add option to control access note diagnostics
This will allow teams writing access notes to use -Raccess-note=all-validate to check that their access notes are correct, or teams working around problems to use -Raccess-note=failures or -Raccess-note=none to suppress diagnostics.
2021-05-22 13:01:29 -07:00
Alex Hoppen
7ce0e872b7 [Statistic] Refactor to make getInstructionsExecuted publically available 2021-05-20 16:02:41 +02:00
swift_jenkins
254d08aee9 Merge remote-tracking branch 'origin/main' into next 2021-04-28 23:41:49 -07:00
Ben Barham
0fc005dd8e Merge pull request #37105 from bnbarham/serialize-offsets
[Serialization] Store offset of decls in .swiftsourceinfo
2021-04-29 16:37:15 +10:00
swift_jenkins
1f49043413 Merge remote-tracking branch 'origin/main' into next 2021-04-28 20:41:23 -07:00