Commit Graph

559 Commits

Author SHA1 Message Date
Anthony Latsis
91fedd9b8a Verifier: Support line numbers in fix-it verification 2022-01-31 05:04:49 +03:00
Slava Pestov
d57f1aaa06 Merge pull request #40919 from slavapestov/debug-generic-signatures
AST: -debug-generic-signatures protocol-qualifies DependentMemberTypes
2022-01-20 10:37:13 -05:00
Slava Pestov
e4973158d8 AST: -debug-generic-signatures protocol-qualifies DependentMemberTypes 2022-01-19 22:36:15 -05:00
Alex Lorenz
6486c3c1d8 [interop] add an option to emit C++ header interface for a module 2022-01-19 18:55:14 -08:00
Erik Eckstein
408cf02bc8 rework cross-module-optimization
* rename the CrossModuleSerializationSetup pass to simply CrossModuleOptimization
* remove the CMO specific serializer pass. Instead run the CrossModuleSerializationSetup pass directly before the standard serializer pass.
* correctly handle shared functions (e.g. specializations)
* refactoring
2021-12-20 11:33:02 +01:00
Xi Ge
28eef324d0 Frontend: support emitting ABI descriptor when specifying the path in supplementary output map. rdar://86559811 2021-12-15 22:42:15 -08:00
Argyrios Kyrtzidis
7ad553f981 Merge pull request #40273 from bnbarham/pch-allow-errors
[ClangImporter] Handle allowing PCM/PCH errors
2021-12-03 18:13:46 -08:00
Ellie Shin
48a483a9f5 Update tests 2021-12-02 20:57:55 -08:00
Ellie Shin
b82e7bf4e1 Add explicit builds mode to tests 2021-12-02 15:51:07 -08:00
Ellie Shin
5da881256f Module aliasing: Use real module names with -scan-dependencies
Resolves rdar://85991587
2021-12-02 15:45:30 -08:00
Ben Barham
efcb5e38ca [Frontend] Add whether allowing compiler errors to the pretty stacktrace
While this will be in the compiler arguments, it's easy to miss when
skimming over the pretty stacktrace. Add an explicit message to make it
easier to see while looking over crashes.
2021-11-30 15:46:52 +10:00
Ellie Shin
e2631c9ca8 Move getRealImportPath to cpp
Remove unnecessary setter
Update tests
2021-11-10 00:30:26 -08:00
Ellie Shin
c0766177ce Update test 2021-11-10 00:30:25 -08:00
Ellie Shin
4814ea483f Update dump-ast test 2021-11-10 00:30:25 -08:00
Ellie Shin
09093e89dc Pass in out param to ImportPath getters
Modify ASTDumper to print module real names
Add doc comments
2021-11-10 00:30:25 -08:00
Ellie Shin
fd5aaa5bcb Add a test with -emit-imported-module 2021-11-10 00:30:25 -08:00
Ellie Shin
7cabcc913e Update dump ast test 2021-11-10 00:30:25 -08:00
Ellie Shin
c08e7b9cd2 Module aliasing: modify ImportPath getters to return real module names
Resolves rdar://83632921, rdar://83633109
2021-11-10 00:30:25 -08:00
Ellie Shin
b294fe94f2 Merge pull request #39929 from apple/es-src
Module Aliasing: do not allow module real names to appear in source files (only allow module aliases).
Resolves rdar://83592084
2021-11-01 17:50:49 -07:00
Ellie Shin
66d64b610d Updates params to ASTContext::getRealModuleName 2021-10-29 01:52:33 -07:00
elsh
10a96dff57 Module Aliasing: do not allow module real names to appear in source files / only allow aliases
Resolves rdar://83592084
2021-10-28 02:36:59 -07:00
elsh
477c7a6c4b Fix tests: remove platform specific entries 2021-10-19 17:32:16 -07:00
elsh
fe29ae027e Disable failing tests temporarily 2021-10-19 17:01:53 -07:00
Ellie Shin
6f34844b49 Merge pull request #39705 from apple/es-module-alias-serialize
[Module aliasing] Serialize SIL and binaries with module real names for referenced or imported modules. Resolves rdar://83632529
2021-10-18 21:55:45 -07:00
elsh
9143bd4805 Update test 2021-10-18 17:37:26 -07:00
elsh
7a3a032ce8 Use module real name in ASTPrinter 2021-10-15 03:57:21 -07:00
elsh
e3d5ae0172 Add SIL re-ingest test 2021-10-14 19:03:31 -07:00
elsh
e1dfdba1e6 Add doc comments and tests for AST / SIL 2021-10-14 16:18:02 -07:00
elsh
4b3ee94c99 Cleanup tests 2021-10-13 14:52:52 -07:00
elsh
1d0c84c690 Update tests 2021-10-13 13:54:10 -07:00
elsh
adf33e0bb9 Add doc comments
Rename test
2021-10-12 15:03:30 -07:00
elsh
96fb3d6112 [Module aliasing] Serialize binary with module real name
Resolves rdar://83632529
2021-10-12 13:59:34 -07:00
Ellie Shin
5c92ccadc9 Merge pull request #39628 from apple/es-m4
[Module aliasing] Mangle symbols using the module real name (binary name), which can be different from the module name appearing in source files if '-module-alias' is used. Resolves rdar://83632604.
2021-10-10 13:37:46 -07:00
elsh
e130fde807 Fix test for linux 2021-10-08 16:23:43 -07:00
Alexis Laferrière
baf032bda2 Merge pull request #39619 from xymus/pls-no-script-bug-reports
[Frontend] Don't ask to report bugs for a script failure
2021-10-08 09:11:27 -07:00
elsh
782ba98d1b [Module aliasing] Mangle symbols with module real names 2021-10-06 18:20:26 -07:00
elsh
e182c2387e Update tests due to windows escape char error 2021-10-06 15:28:16 -07:00
elsh
f4f08072d8 Add tests with more chained deps scenarios 2021-10-06 14:39:11 -07:00
Alexis Laferrière
69ce3ec41f [Frontend] Don't ask to report bugs to us in immediate mode
rdar://81233463
2021-10-06 14:13:58 -07:00
elsh
307c08c0fa Add tests with chained dependency scenarios with module aliasing 2021-10-06 13:52:28 -07:00
elsh
0cad63eb12 Clean up a test 2021-10-06 12:37:23 -07:00
elsh
7f9dbefd2f Update test 2021-10-05 18:19:12 -07:00
elsh
2efab715cd Use real module names to load modules
Add ModuleInterface option meta tag for -module-alias
Add tests loading modules with -module-alias for swiftmodule and swiftinterface
with various loaders incl. serialized, explicit, and source loader.
2021-10-05 13:41:48 -07:00
elsh
55b9fa11d8 Load modules using real names if module aliases are used
rdar://83591943
2021-10-05 10:55:22 -07:00
elsh
955f1a2508 fix diag msg 2021-09-24 14:37:56 -07:00
elsh
58a01c4ee7 Use StringMap
More specific diag msgs
Add tests
2021-09-24 14:37:56 -07:00
Argyrios Kyrtzidis
a382f589a5 Merge pull request #39141 from akyrtzi/opt-record-via-supplemental-outputs
[frontend] Support passing the optimization record file via the supplemental outputs map
2021-09-07 13:44:05 -07:00
Argyrios Kyrtzidis
d3ba531e64 [frontend] Support passing the optimization record file via the supplemental outputs map
The Swift driver is passing the optimization record file path via the supplementals output, instead of the flag, on certain circumstances.
Enhance the frontend to check supplemental outputs otherwise the record file will not get emitted when using the new swift driver.
2021-09-02 11:13:34 -07:00
Hamish Knight
01a082a058 [AST] Adopt ArgumentList
Switch out the representation of argument lists
in various AST nodes with ArgumentList.
2021-09-01 18:40:23 +01:00
Ben Barham
12018bebb9 [Frontend] Always output the version being compiled for
Outputting the effective version in the pretty stack trace was skipped
if the current version was the same as the effective version. This would
result in an empty line, which is somewhat confusing. Output a line
regardless.

Resolves rdar://81140703
2021-07-27 11:32:31 +10:00