Saleem Abdulrasool
d281b98220
litter the tree with llvm_unreachable
...
This silences the instances of the warning from Visual Studio about not all
codepaths returning a value. This makes the output more readable and less
likely to lose useful warnings. NFC.
2018-09-13 15:26:14 -07:00
Harlan Haskins
14a7ae56db
[TBDGen] Remove TBD options from FrontendOptions
...
This patch removes the duplication between FrontendOptions and
TBDGenOptions by parsing the TBDGenOptions up front similarly to IRGen
and SIL options.
2018-08-15 14:53:44 -07:00
Jordan Rose
d9e47650d5
Add a new SourceFileKind and InputFileKind for textual interfaces
...
And test this by tweaking the rules to allow functions without
definitions, like SIL files.
2018-08-07 08:55:07 -07:00
Jordan Rose
061204c704
Remove "IFK_" prefix from enum class InputFileKind
...
I suspect this was converted from a non-scoped enum in the past.
No functionality change.
2018-08-07 08:54:31 -07:00
Huon Wilson
4c2f5294de
[Frontend] Add a more descriptive error for a TBD validation failure.
2018-05-25 20:13:06 +10:00
Huon Wilson
38e45c4be5
[TBDGen] Take options as a struct instead of arguments.
2018-05-23 00:02:15 +10:00
David Ungar
51d3165874
NFC: Clarifying uses of NumThreads.
...
Add hasMultipleGMs predicate to SILOptions.
Rename parameters to TBD file handling to better reflect abstraction boundary.
fix
2017-12-16 13:58:01 -08:00
Roman Levenstein
48d9b99675
Remove -sil-serialize-witness-tables flag completely
...
The functionality is always enabled now and there is no need to have a dedicated flag for it.
2017-10-20 19:45:29 -07:00
Huon Wilson
a6e4fdb887
[Frontend] Add -tbd-install_name frontend argument.
2017-08-02 11:33:54 -07:00
Huon Wilson
a0bc3bd0b6
[AST] Move getEffectiveAccess calls into SIL.
2017-06-20 17:34:48 -07:00
Huon Wilson
0eb849715f
[FrontendTool] Only validate TBD for Swift input.
2017-05-23 14:46:23 -07:00
Huon Wilson
40ba18615b
[Frontend] -validate-tbd-against-ir has 3 levels of validation.
...
It can now:
- not validate (=none)
- validate that all symbols in the IR are also in the TBD (=missing),
- validate the above, and also that all in the TBD are in the IR (=all).
The first and last were switched between with the old boolean flag, the
second is new.
2017-05-19 18:36:48 -07:00
Huon Wilson
fcb88b4084
[TBD] Thread enough through to use UniversalLinkageInfo.
2017-04-06 17:50:57 -07:00
Huon Wilson
0c37685327
[TBD] Validate against truly externally visible symbols in the IR.
...
External linkage isn't enough: not being hidden is important too.
2017-03-28 16:31:12 -07:00
Huon Wilson
636a3c5821
[TBD] Sort -emit-tbd, and -validate-tbd-against-ir errors.
...
Also, diff the full output rather than using FileCheck.
2017-03-28 16:31:10 -07:00
Huon Wilson
4eff6f1374
[FrontendTool] -emit-tbd and -validate-tbd-against-ir flags.
...
These, respectively, write a list of symbols to a file, and compare what
that list would be against the "true" list (the symbol names in the IR).
2017-03-28 16:31:09 -07:00