Commit Graph

1198 Commits

Author SHA1 Message Date
David Ungar
35fab64bac Move outputing provides-top-level. 2018-06-15 11:15:22 -07:00
David Ungar
50c725e0bc Preparing ReferenceDependencies for centralizing strings. 2018-06-15 11:15:22 -07:00
David Ungar
4c4e25f3d2 Added consts where helpful and deleted where not. 2018-06-15 11:15:22 -07:00
David Ungar
617b506dd4 const WIP 2018-06-15 11:15:22 -07:00
David Ungar
41f75ab324 Move helpers into the classes that use them. 2018-06-15 11:15:22 -07:00
David Ungar
44af96dc6d Reorder functions to group members together. 2018-06-15 11:15:22 -07:00
David Ungar
cac9a9a907 Move class declarations to top of file, put CollectedProvidedDeclarations inside of ProvidesEmitter. 2018-06-15 11:15:22 -07:00
David Ungar
1f7c920854 Rename TableEntryTy per Jordan's advice. 2018-06-15 11:15:22 -07:00
David Ungar
11aa1f15bc Shorted names of member fns of DependsEmitter. 2018-06-15 11:12:25 -07:00
David Ungar
d0affb24ad Wrap depends emitters in a class. 2018-06-15 11:12:25 -07:00
David Ungar
16a1299f90 Move provides emitters into a class 2018-06-15 11:12:25 -07:00
David Ungar
5477b3987a Aggregate the provided declatations into CollectedProvidedDeclarations. 2018-06-15 11:12:25 -07:00
David Ungar
c8130663d5 Move top-level emitting into a class, ReferenceDependenciesEmitter. 2018-06-15 11:12:25 -07:00
David Ungar
ebf8713c08 Break up emitReferenceDependencies to separate the file opening from emitting to a stream. 2018-06-15 11:12:25 -07:00
David Ungar
70005c10e5 Factor out file openning & error handling. 2018-06-15 11:12:25 -07:00
David Ungar
fe8ac4b2b2 Per Jordan, use raw_ostream instead of raw_fd_ostream. 2018-06-15 11:12:25 -07:00
David Ungar
44e5cd3bba clang-format 2018-06-15 11:12:25 -07:00
David Ungar
abe7544c1a Subdivide emitting a provides decl. 2018-06-15 11:12:25 -07:00
David Ungar
d53122f03a clang-format 2018-06-15 11:12:25 -07:00
David Ungar
c4172183f0 Subdivide one more level down. 2018-06-15 11:12:25 -07:00
David Ungar
45c562b8e5 Split up emitReferenceDependencies into 3 steps: provides, depends, interfaceHash. 2018-06-15 11:12:25 -07:00
swift-ci
f71dc72e79 Merge remote-tracking branch 'origin/master' into master-next 2018-06-15 10:09:02 -07:00
Jordan Rose
8d43ec3ad7 Merge pull request #17087 from allevato/dwarf-command-line-flags
Make DWARF debug flag behavior match Clang.
2018-06-15 09:52:26 -07:00
swift-ci
088f3da114 Merge remote-tracking branch 'origin/master' into master-next 2018-06-14 21:29:12 -07:00
Slava Pestov
181d7a2eac FrontendTool: Deterministic order when a normal declname has same spelling as special declname 2018-06-14 20:41:27 -07:00
Tony Allevato
88cffc13d3 Update indentation and %swiftc_driver usage. 2018-06-13 10:23:14 -07:00
swift-ci
3950edc9f6 Merge remote-tracking branch 'origin/master' into master-next 2018-06-12 17:49:25 -07:00
David Ungar
20d099d4ce Remove now-unneeded argument from finishProcessing. 2018-06-12 16:37:04 -07:00
Bob Wilson
e1cbc560f9 [master-next] More changes to adapt to new LLVM flags in r334221
My previous change for this issue (033b884de6) did not fix all the
affected code. This gets the rest of them. Thanks for Jason Molenda
for helping with this. rdar://problem/41025365
2018-06-12 14:55:40 -07:00
Tony Allevato
22ac700154 Make DWARF debug flag behavior match Clang.
Only write the compilation flags to debug info for Mach-O targets, and only
if the RC_DEBUG_OPTIONS environment variable is set.
2018-06-09 20:05:06 -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
ba150e9240 Merge pull request #16786 from huonw/tbdgen
More TBDGen: force-load, conformance witness details, test header clean-up, more purposeful handling of accessors.
2018-05-24 12:37:15 +10:00
Huon Wilson
cfc5abdaa2 [TBDGen] Emit the symbol for autolink-force-load-ing.
Fixes rdar://problem/40356032.
2018-05-23 10:56:49 +10:00
Huon Wilson
38e45c4be5 [TBDGen] Take options as a struct instead of arguments. 2018-05-23 00:02:15 +10:00
David Ungar
df4048c995 Clarify ownership of DepTracker. 2018-05-16 14:37:57 -07:00
David Ungar
21346419ca Add a comment. 2018-05-16 09:52:18 -07:00
David Ungar
524d88e921 Pass SM in finishProcessing 2018-05-12 19:40:09 -07:00
David Ungar
8baef6abd5 WIP backup 2018-05-11 17:28:39 -07:00
David Ungar
70aecfef36 Emit error diagnostic for a primary if all errors suppressed 2018-05-11 15:14:42 -07:00
David Ungar
aa2f2eb239 Call forEachNonPrimaryInput directly instead of providing useless semantics for forEachInputNotProducingSupplementaryOutput. 2018-05-10 14:20:49 -07:00
David Ungar
4a194a924b If type-checking in batch mode with no errors, don’t crash on outputting unneeded ObjCHeader. 2018-05-09 19:19:04 -07:00
David Ungar
02fcbf7226 optional pointer to consumer replaces NullDiagnosticConsumer placeholder 2018-05-09 18:09:40 -07:00
Jordan Rose
a214f0b39b Fix call to llvm::opt::OptionTable::PrintHelp (#16269)
The signature here changed, but the old arguments implicitly converted
to the parameter types for the wrong overload, so we didn't notice.
Add a simple test that would have at least caught this for the driver.
2018-05-02 16:54:10 -07:00
Slava Pestov
81cf1d951d SIL: Remove -sil-link-all frontend flag
It was only used in a few tests. Those tests now use -emit-sil instead
of -emit-silgen, with some functions marked @_transparent and a few
CHECK: lines changed now that the mandatory optimizations get to run.
2018-04-09 13:27:52 -07:00
Slava Pestov
cc586594d1 SIL: Remove unnecessary performSILLinking() calls from immediate mode and REPL 2018-04-09 13:27:07 -07:00
Robert Widmann
d61553efc1 [SR-7342] Teach EmitImportedModules action to evaluate conditional compilation blocks 2018-04-04 17:46:33 -04:00
Harlan
527cce409a [Syntax] Don't pretty-print -emit-syntax JSON output (#15380) 2018-03-27 10:55:59 -04:00
Jordan Rose
c5dcf01aca Merge pull request #14814 from jrose-apple/dump-truck
Dump (some) filelists in the PrettyStackTrace
2018-03-12 09:13:20 -07:00
Jordan Rose
6243096b0b Dump input filelists in the PrettyStackTrace
This may help us reproduce a failing build when all we have is a build
log, and will become much more important in batch mode when we
/really/ need to know what ended up in what batch.

For now, this doesn't include /output/ filelists, because David's
about to mess with that code anyway to make things better around
supplementary outputs in batch mode. There is one weirdness there,
though, which is that ArgsToFrontendInputsConverter peeks at the
outputs to see whether we're doing single-threaded or multi-threaded
WMO.
2018-03-09 18:32:02 -08:00
Jordan Rose
41286bc676 Make JSON fix-it outputs be per-primary in batch mode. (#14995)
This means moving the output path into SupplementaryOutputPaths, and
using the same sort of diagnostic dispatching that serialized
diagnostics use. This is part of what's needed to run the migrator
in batch mode.
2018-03-09 11:58:54 -08:00