Saleem Abdulrasool
910fbee14e
gardening: make c++98-compat-extra-semi an error
...
This cleans up 90 instances of this warning and reduces the build spew
when building on Linux. This helps identify actual issues when
building which can get lost in the stream of warning messages. It also
helps restore the ability to build the compiler with gcc.
2021-11-27 11:40:17 -08:00
swift-ci
e7200268ed
Merge remote-tracking branch 'origin/main' into rebranch
2021-11-13 09:34:28 -08:00
Artem Chikin
40a1b321f5
Add libSwiftScan entry-point to query target info.
...
This provides the library with functionality to answer `-print-target-info` queries in place of calls to `swift-frontend`.
2021-11-12 11:01:45 -08:00
Evan Wilde
6cc002012f
Update ByteStream APIs from 32 to 64 bit
...
The ByteStream APIs were updated from 32 to 64 bits in LLVM.
Updating methods in the ExponentialGrowthAppendingBinaryByteStream.
2021-10-21 13:40:42 -07:00
Evan Wilde
a5f11c4851
Fix the main->next merge conflicts
...
This cleans up all of the merge conflicts from main into next after the
rebranch merge.
2021-10-15 15:57:55 -07:00
Ben Barham
624337148b
[NFC] Formatting cleanup to help with next conflicts
2021-10-15 17:15:51 +10:00
Doug Gregor
a91feb3309
Update the OS runtime mapping for Apple OS versions.
...
Fixes the rest of rdar://84065193, makingn sure we don't link against
compatibility libraries we don't need.
2021-10-13 23:02:11 -07:00
swift_jenkins
66ebca7439
Merge remote-tracking branch 'origin/main' into next
2021-10-04 23:00:40 -07:00
Richard Howell
140c02466a
Add -prefix-serialized-debugging-options ( #39555 )
...
This commit adds a new frontend flag that applies debug path prefixing to the
paths serialized in swiftmodule files. This makes it possible to use swiftmodule
files that have been built on different machines by applying the inverse map
when debugging, in a similar fashion to source path prefixing.
The inverse mapping in LLDB will be handled in a follow up PR.
Second pass at #39138
Tests updated to handle windows path separators.
This reverts commit f5aa95b381 .
2021-10-04 22:41:32 -07:00
swift_jenkins
e8bfb5c8ec
Merge remote-tracking branch 'origin/main' into next
2021-10-01 11:54:40 -07:00
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