David Ungar
6b1d16b68b
Move comment to declaration.
2018-02-01 15:20:20 -08:00
Erik Eckstein
17d4459227
debug-info: Don't write temporary file names in the debug info.
...
This would prevent incremental llvm compilation because we would generate different IR on every compiler invocation.
2018-02-01 12:15:36 -08:00
David Ungar
614006bc4f
Move main outputs to FrontendInputsAndOutputs and InputFile
2018-02-01 11:55:08 -08:00
David Ungar
e006825d88
Move convertBufferNameFromLLVM_getFileOrSTDIN_toSwiftConventions deeper in the call stack.
2018-01-30 18:55:02 -08:00
David Ungar
4bd12ac509
Change conjunction to assertion in isInputPrimary to check consistency.
2018-01-30 18:55:01 -08:00
David Ungar
00da3e81ca
Reorder attributes in FrontendInputsAndOutputs
2018-01-30 18:55:01 -08:00
David Ungar
a9819b6e60
Renaming FrontendInputs -> FrontendInputsAndOutputs
...
Fix comment in ArtsToFrontendOptionsConverter re getOutputFilenamesFromCommandLineOrFilelist
2018-01-30 18:54:38 -08:00
David Ungar
ec2a9573cc
Rename FrontendInputs::AllFiles to AllInputs, getAllFiles to getAllInputs, etc.
2018-01-23 14:01:15 -08:00
David Ungar
a70ba0a6cd
Split out ArgsToFrontenfOptionsConverter.
2018-01-19 09:51:30 -08:00
David Ungar
68bda74a00
Split out ArgsToFrontendInputsConverter.
2018-01-18 18:36:12 -08:00
David Ungar
361ff7244c
Move FrontendInputs into separate .h and .cpp files.
2018-01-18 18:34:57 -08:00
David Ungar
1f8f9947fd
Changed PrimarySourceFiles from a SetVector to an ArrayRef.
2018-01-17 12:20:52 -08:00
Graydon Hoare
b0e5726af9
[BatchMode] Change CompilerInstance::Primary{BufferID,SourceFile} to SetVectors.
2018-01-16 16:17:25 -08:00
Slava Pestov
6af8d18a00
IRGen: Remove -enable-class-resilience staging flag
2018-01-03 00:26:10 -08:00
Greg Parker
c677a5dc11
[IRGen][runtime] Prepare to change the is-Swift bit in class metadata. ( #13595 )
...
Swift class metadata has a bit to distinguish it from non-Swift Objective-C
classes. The stable ABI will use a different bit so that stable Swift and
pre-stable Swift can be distinguished from each other.
No bits are actually changed yet. Enabling the new bit needs to wait for
other coordination such as libobjc.
rdar://35767811
2017-12-22 00:52:00 -08:00
swift-ci
adf83617ec
Merge pull request #13526 from DougGregor/remove-conditional-conformances-flag
2017-12-19 11:17:44 -08:00
Doug Gregor
5c831a71ee
Revert "[SE-0143] Put conditional conformances behind an "experimental" flag."
...
This reverts commit b59c30c1af .
2017-12-18 22:54:31 -08:00
Ben Langmuir
93956eb34b
[code-complete] Put call-pattern heuristics under a flag
...
The original hope was we could make these heuristics really good, but
since that is not currently in sight (and may never be), we want to be
able to turn them off. For now, just plumb through an internal flag to
control the behaviour. A future change will customize the behaviour in
SourceKit.
rdar://31113161
2017-12-15 13:23:44 -08:00
David Ungar
676c396b7d
Merge pull request #13397 from davidungar/PR5-setBuffer-rb2
...
Eliminate InputFile::setBuffer()
2017-12-13 14:48:26 -08:00
David Ungar
38c7b3eb4e
Make PrimaryFiles into a local.
...
Separate unusedPrimaries from all Primaries.
2017-12-13 12:01:47 -08:00
David Ungar
02470d1343
Simplify invocation of forAllFilesInFilelist.
2017-12-13 09:55:41 -08:00
David Ungar
9c78480bdf
Enforce exclusivity between -primary-file and -primary-filelist.
2017-12-13 09:45:53 -08:00
David Ungar
fb141bb16d
Fix primary not found diagnostic.
2017-12-13 09:28:43 -08:00
David Ungar
c3c9e90865
Add primary file list.
2017-12-13 04:03:37 -08:00
David Ungar
e9ada4cd0e
FrontendInputs data structure redo.
...
- Outlaw duplicate input files, fix driver, fix tests, and add test.
- Reflect that no buffer is present without a (possibly pseudo) named file.
- Reflect fact that every input has a (possible pseudo) name.
- Break up CompilerInstance::setup.
-
2017-12-12 16:01:12 -08:00
David Ungar
c0b0b5c5da
Eliminate InputFile::setBuffer by having SwiftASTManager create new InputFile's with the buffer set or not as needed.
2017-12-12 15:06:26 -08:00
David Ungar
00872b5d50
Removed another get().
2017-12-12 13:07:09 -08:00
David Ungar
38ce2a14d1
Added a FIXME and removed a get per review suggestions.
2017-12-12 13:04:25 -08:00
David Ungar
9105284a06
Refactor setUpInputs in CompilerInstance.
2017-12-12 10:14:33 -08:00
David Ungar
c1f81867d7
Merge pull request #13268 from davidungar/PR3A-rb
...
FrontendInputs data structure redo, rebased.
2017-12-11 20:44:10 -08:00
David Ungar
724d1c36cd
Last round of small changes
2017-12-11 17:19:06 -08:00
Slava Pestov
fc3cf2863a
Sema: Infer default witnesses before finishing conformance checking
...
Otherwise, we'll never get a chance to drain the TypeChecker's
UsedConformances list.
Fixes <https://bugs.swift.org/browse/SR-6565 >, <rdar://problem/35949729>.
2017-12-10 20:30:48 -08:00
David Ungar
60827b4be3
Rename accessors to InputFile data.
2017-12-08 12:57:32 -08:00
David Ungar
6e3829ec96
Rename isInMainMode to isInputSwift
2017-12-08 11:47:33 -08:00
David Ungar
ce56435a1a
Remove needless conversion to unique pointer.
2017-12-08 11:45:33 -08:00
David Ungar
536300f018
Add assertions about re-setting Main and PrimaryBufferIDs
2017-12-08 11:43:38 -08:00
David Ungar
c6cfa147f3
Added assertion for single primary to shouldTreatAsSIL
2017-12-06 16:08:30 -08:00
David Ungar
b63aab533d
Replaced assert(false with llvm_unreachable
2017-12-06 15:54:24 -08:00
David Ungar
ef9fcf9ee3
Use count_if
2017-12-06 15:52:32 -08:00
David Ungar
acce229d0a
Use llvm::StringSet for PrimaryFiles.
2017-12-06 15:37:54 -08:00
David Ungar
70e5981407
Remove spurious comment.
2017-12-06 15:29:32 -08:00
David Ungar
4806c94a6d
Rename argument of numberOfPrimaryInputsEndingWith to extension.
2017-12-06 15:28:27 -08:00
David Ungar
995a6c1b2a
Rename doAllNonPrimariesEndWIthSIB to areAllNonPrimariesSIB.
2017-12-06 15:27:50 -08:00
David Ungar
704d7258d1
Rename hasUniqueInput to hasSingleInput.
2017-12-06 15:25:16 -08:00
David Ungar
4c5d5faa63
Fix setup's.
2017-12-06 15:23:39 -08:00
David Ungar
7176e1fc72
Clarify reading inputs.
2017-12-06 15:22:25 -08:00
swift-ci
68a4b439e2
Merge pull request #13293 from adrian-prantl/35714074
2017-12-06 10:24:00 -08:00
Adrian Prantl
97f9e4e367
Don't pass -Werror to ClangImporter's clang when Swift is used from within LLDB.
...
This works a around search path problems caused by a module existing
in both the build/install directory and the source directory.
<rdar://problem/35714074>
2017-12-06 09:22:29 -08:00
David Ungar
28b206008f
FrontendInputs data structure redo.
...
- Outlaw duplicate input files, fix driver, fix tests, and add test.
- Reflect that no buffer is present without a (possibly pseudo) named file.
- Reflect fact that every input has a (possible pseudo) name.
- Break up CompilerInstance::setup.
Don't bail on dups.
2017-12-05 17:28:03 -08:00
Argyrios Kyrtzidis
94d0e4e7a1
Merge pull request #13271 from rintaro/cmake-syntax-headers
...
[CMake] Add swift-syntax-generated-headers to the global dependencies
2017-12-05 16:14:46 -08:00