Skip to content

[pull] swiftwasm from master #1133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 90 commits into from
Jun 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
9c7624c
Removes redundant buffer zeroing in _persistCString func
valeriyvan Apr 18, 2020
45661f6
Merge branch 'master' into RemoveRedundantBufferZeroingNSStringAPI
valeriyvan May 5, 2020
0046550
Merge branch 'master' into RemoveRedundantBufferZeroingNSStringAPI
valeriyvan May 6, 2020
d50ea6b
Merge branch 'master' into RemoveRedundantBufferZeroingNSStringAPI
valeriyvan May 10, 2020
3428368
Using initialize instead of assign
valeriyvan May 11, 2020
88d8d9f
AST: Don't set source location on cloned parameter lists
slavapestov May 14, 2020
ffd92f9
Add test case for <rdar://problem/63191951>
slavapestov May 26, 2020
8fefdec
Use a SetVector when looking up the SPI attributes on imports
xymus May 22, 2020
985cc3d
[Tools] Start implementing swifdt, a tool to inspect the Swift runtim…
mikeash Jan 30, 2020
f5377cb
[Tools] Get swiftdt calling into Symbolication and have it print all …
mikeash Feb 3, 2020
661209b
[Tools] Start hooking up swiftdt to Symbolication, print out found sy…
mikeash Feb 3, 2020
7103ee8
[Tools] Start hooking up swiftdt to Remote Mirror.
mikeash Feb 3, 2020
f5464e0
[Tools] Fill out Remote Mirror callbacks for swiftdt.
mikeash Feb 4, 2020
98c2a35
[Tools] Get a first pass of swiftdt conformance cache dumping up and …
mikeash Feb 4, 2020
0ddbd84
[Tools] Teach swiftdt how to retrieve ObjC class names.
mikeash Feb 5, 2020
22cfe46
[Tools] Super rough draft of swiftdt dumping MetadataAllocator contents.
mikeash Feb 6, 2020
342cbbe
[Tools] Add rudimentary command parsing to swiftdt.
mikeash Feb 21, 2020
2c7f09c
[Tools] Add some metadata printing to swiftdt.
mikeash Apr 23, 2020
2dd3b94
[Runtime] Remove inactive code that looked up entries in the protocol…
mikeash Apr 24, 2020
48e5473
[Tools] Simplify swiftdt conformance cache dumping since the conforma…
mikeash Apr 24, 2020
df5580b
[Tools] Move metadata dumping into swiftdt, have Remote Mirror just i…
mikeash Apr 28, 2020
d9805ca
[Reflection] Add error messages to the new Remote Mirror calls and pl…
mikeash Apr 28, 2020
b73b325
[Runtime] Only enable metadata allocation tracking when requested wit…
mikeash Apr 28, 2020
ad09919
[Runtime] Expose the protocol conformance state as a _swift_debug var…
mikeash Apr 28, 2020
3a498ca
[RemoteMirror] Add comments to the new APIs and types.
mikeash May 1, 2020
7ca1392
[Reflection] Clean up the ReflectionContext additions.
mikeash May 1, 2020
7bc6058
[Tools] Add a reminder to run the tool as root if the target can't be…
mikeash May 1, 2020
6251ff7
[Tools] Get swiftdt actually building again.
mikeash May 8, 2020
8804636
Minor cleanup of initial swiftdt work.
mikeash May 8, 2020
da5d2b4
[Runtime] Clean up metadata allocation tracking.
mikeash May 8, 2020
043bc71
[Tools] Remove Foundation dependency from swiftdt, which gets very co…
mikeash May 8, 2020
404867e
[build-script] Convert swiftdt to be a swiftpm project that is built …
gottesmm May 8, 2020
c0963cb
[swiftdt] Switch to ArgumentParser instead of handcrafted argument pa…
mikeash May 12, 2020
8994408
[swiftdt] Import Foundation again, and get rid of our horrible handcr…
mikeash May 12, 2020
aea7d03
[Reflection] Remove useless TaggedUnion.h include. Comment swift_meta…
mikeash May 15, 2020
e1c47cf
[Runtime] Comment the MetadataAllocatorTags enum.
mikeash May 15, 2020
ab01026
[CMake] Undo some changes made for swiftdt.
mikeash May 15, 2020
501a468
nfc: std lib style tweaks
airspeedswift May 15, 2020
b8b9fc7
Wrap allocations/metadatas
airspeedswift May 17, 2020
49cbf97
Rename swiftdt to swift-inspect
airspeedswift May 28, 2020
23ebf78
Add copywrite headers
airspeedswift May 29, 2020
b3a5cb7
Separate raw metadata and generic metadata dump commands
airspeedswift May 29, 2020
6c8fa93
Add swift-inspect default values to expected_options.py.
mikeash May 29, 2020
f107a15
[CodeCompletion] Skip to '=' after completion in 'if'/'guard' pattern
rintaro May 28, 2020
6def030
[Constraint system] Separate out constraint generation for closures.
DougGregor May 30, 2020
618b753
[Function builders] Update test case
DougGregor May 30, 2020
451e3cc
[Constraint system] Move closure type checking to a separate file.
DougGregor May 30, 2020
b9b8f08
[Constraint system] Switch closure constraint generation to a visitor.
DougGregor May 30, 2020
2a55b9d
Fix python lint errors.
mikeash May 30, 2020
fb58228
runtime: extract `swiftDemangling` into a support library
compnerd May 29, 2020
1cc6698
build: remove unnecessary `CXX_STANDARD` for Windows
compnerd May 30, 2020
72d8d9b
[cmake] Move ar linking optimization rule into UnixCompileRules.cmake…
gottesmm May 31, 2020
af048d6
[Constraint system] Move solution application for closures to CSClosure.
DougGregor May 31, 2020
761ee54
[Constraint system] Use a visitor for solution application to closures.
DougGregor May 31, 2020
5342444
Merge pull request #32114 from DougGregor/closure-typecheck-refactor
DougGregor May 31, 2020
ea92df0
[NFC] Remove redundant includes for <vector>.
varungandhi-apple May 29, 2020
4028222
[NFC] Remove redundant includes for <string>.
varungandhi-apple May 29, 2020
2c7b4b1
[NFC] Remove redundant includes for llvm/ADT/Optional.h.
varungandhi-apple May 29, 2020
3077cbd
[NFC] Remove redundant includes for llvm/ADT/StringRef.h.
varungandhi-apple May 29, 2020
0441894
[NFC] Remove redundant includes for llvm/ADT/ArrayRef.h.
varungandhi-apple May 29, 2020
ba4b43a
[NFC] Remove redundant includes for llvm/ADT/TinyPtrVector.h.
varungandhi-apple May 29, 2020
96a332e
[NFC] Remove redundant includes for llvm/ADT/SmallVector.h.
varungandhi-apple May 29, 2020
52dcd47
[NFC] Remove redundant includes for llvm/ADT/SmallString.h.
varungandhi-apple May 29, 2020
c14e934
[NFC] Remove redundant includes for llvm/ADT/SmallSet.h.
varungandhi-apple May 29, 2020
91693e9
[NFC] Remove redundant includes for llvm/ADT/SmallPtrSet.h.
varungandhi-apple May 29, 2020
81ce068
[NFC] Remove redundant includes for llvm/ADT/StringSet.h.
varungandhi-apple May 29, 2020
e64d4a0
[NFC] Remove redundant includes for llvm/ADT/StringMap.h.
varungandhi-apple May 29, 2020
fea589e
[NFC] Remove redundant includes for llvm/ADT/DenseSet.h.
varungandhi-apple May 29, 2020
7df7378
[NFC] Remove redundant includes for llvm/ADT/DenseMap.h.
varungandhi-apple May 29, 2020
f854921
[NFC] Remove redundant includes for llvm/ADT/SetVector.h.
varungandhi-apple May 29, 2020
caf38b6
[NFC] Remove redundant includes for llvm/ADT/MapVector.h.
varungandhi-apple May 29, 2020
5e73d77
[NFC] Remove redundant includes for llvm/ADT/BitVector.h.
varungandhi-apple May 29, 2020
82e87f6
[NFC] Remove self-include in PassPipeline.h.
varungandhi-apple May 30, 2020
77dbf62
[NFC] IWYU for swift/Basic/TypeID.h.
varungandhi-apple May 31, 2020
2001f07
Python 2/3 compat: gyb, gyb_sourcekit_support, gyb_syntax_support, li…
gwynne Jan 27, 2019
e3c60e6
gyb: make SyntaxSupport python3 compatible
compnerd May 30, 2020
2127cbf
Python 2/3 compat: Swift stdlib
gwynne Jan 27, 2019
23f2d34
stdlib: make the FloatingPoint GYB Python3 friendly
compnerd May 31, 2020
ad0a8d3
Merge pull request #31468 from mikeash/swiftdt
mikeash May 31, 2020
1dcd25a
Merge pull request #32108 from compnerd/a-shared-standard
compnerd Jun 1, 2020
42457b9
Merge pull request #32092 from compnerd/undeocrating-undecoration
compnerd Jun 1, 2020
8c201f0
Merge pull request #32062 from rintaro/ide-completion-rdar56802036
rintaro Jun 1, 2020
6c6d89b
[test] Stopped checking function numbers.
nate-chandler Jun 1, 2020
21bf781
Merge pull request #32049 from xymus/spi-unique-imports
xymus Jun 1, 2020
21ca9d4
Merge pull request #32111 from gottesmm/pr-846f5396754c136c8adbf30b79…
gottesmm Jun 1, 2020
532e7f4
Merge pull request #32121 from nate-chandler/generic-metadata-prespec…
swift-ci Jun 1, 2020
68a5343
Merge pull request #32109 from compnerd/behold-the-future
compnerd Jun 1, 2020
db0c39f
Merge pull request #31121 from valeriyvan/RemoveRedundantBufferZeroin…
swift-ci Jun 1, 2020
2419112
Merge pull request #32080 from varungandhi-apple/vg-tidying-up-withou…
varungandhi-apple Jun 2, 2020
71b2c50
Merge pull request #31778 from slavapestov/cloned-parameter-list-sour…
slavapestov Jun 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ endif()

if(MSVC OR "${CMAKE_SIMULATE_ID}" STREQUAL MSVC)
include(ClangClCompileRules)
elseif(UNIX)
include(UnixCompileRules)
endif()

if(CMAKE_C_COMPILER_ID MATCHES Clang)
Expand All @@ -432,19 +434,6 @@ if(SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT)
endif()
endif()

#
# Assume a new enough ar to generate the index at construction time. This avoids
# having to invoke ranlib as a secondary command.
#

set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_C_ARCHIVE_FINISH "")

set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_CXX_ARCHIVE_FINISH "")

#
# Include CMake modules
#
Expand Down
1 change: 0 additions & 1 deletion cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ function(add_swift_host_library name)
endif()

set_target_properties(${name} PROPERTIES
CXX_STANDARD 14
NO_SONAME YES)
endif()

Expand Down
13 changes: 13 additions & 0 deletions cmake/modules/UnixCompileRules.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

#
# Assume a new enough ar to generate the index at construction time. This avoids
# having to invoke ranlib as a secondary command.
#

set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_C_ARCHIVE_FINISH "")

set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_CXX_ARCHIVE_FINISH "")
1 change: 1 addition & 0 deletions include/swift/AST/ASTPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "swift/Basic/QuotedString.h"
#include "swift/Basic/UUID.h"
#include "swift/AST/Identifier.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Support/raw_ostream.h"
Expand Down
29 changes: 29 additions & 0 deletions include/swift/AST/AnyFunctionRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ class AnyFunctionRef {
return TheFunction.get<AbstractClosureExpr *>()->getSingleExpressionBody();
}

void setSingleExpressionBody(Expr *expr) {
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>()) {
AFD->setSingleExpressionBody(expr);
return;
}

auto ACE = TheFunction.get<AbstractClosureExpr *>();
if (auto CE = dyn_cast<ClosureExpr>(ACE)) {
CE->setSingleExpressionBody(expr);
} else {
cast<AutoClosureExpr>(ACE)->setBody(expr);
}
}

Type getType() const {
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())
return AFD->getInterfaceType();
Expand Down Expand Up @@ -123,6 +137,21 @@ class AnyFunctionRef {
return cast<AutoClosureExpr>(ACE)->getBody();
}

void setBody(BraceStmt *stmt, bool isSingleExpression) {
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>()) {
AFD->setBody(stmt);
AFD->setHasSingleExpressionBody(isSingleExpression);
return;
}

auto *ACE = TheFunction.get<AbstractClosureExpr *>();
if (auto *CE = dyn_cast<ClosureExpr>(ACE)) {
return CE->setBody(stmt, isSingleExpression);
}

llvm_unreachable("autoclosures don't have statement bodies");
}

DeclContext *getAsDeclContext() const {
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())
return AFD;
Expand Down
1 change: 1 addition & 0 deletions include/swift/AST/AnyRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "swift/Basic/TypeID.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/PointerIntPair.h"
#include <string>

namespace llvm {
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/CaptureInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/Support/TrailingObjects.h"
#include <vector>

namespace swift {
class CapturedValue;
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/ConcreteDeclRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "swift/Basic/LLVM.h"
#include "swift/AST/SubstitutionMap.h"
#include "swift/AST/TypeAlignments.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/Support/Compiler.h"
#include <cstring>
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "swift/Basic/OptionalEnum.h"
#include "swift/Basic/Range.h"
#include "swift/Basic/Located.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Support/TrailingObjects.h"
#include <type_traits>
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/ExistentialLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "swift/Basic/ArrayRefView.h"
#include "swift/AST/ASTContext.h"
#include "swift/AST/Type.h"
#include "llvm/ADT/SmallVector.h"

namespace swift {
class ProtocolDecl;
Expand Down
4 changes: 2 additions & 2 deletions include/swift/AST/FileUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class FileUnit : public DeclContext {
/// Find all SPI names imported from \p importedModule by this module,
/// collecting the identifiers in \p spiGroups.
virtual void lookupImportedSPIGroups(
const ModuleDecl *importedModule,
SmallVectorImpl<Identifier> &spiGroups) const {};
const ModuleDecl *importedModule,
SmallSetVector<Identifier, 4> &spiGroups) const {};

protected:
/// Look up an operator declaration. Do not call directly, use
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/GenericParamKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define SWIFT_AST_GENERICPARAMKEY_H

#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/ArrayRef.h"
#include "swift/AST/Type.h"

namespace swift {
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/GenericSignatureBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "swift/AST/TypeRepr.h"
#include "swift/Basic/Debug.h"
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/ilist.h"
#include "llvm/ADT/PointerUnion.h"
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/LinkLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define SWIFT_AST_LINKLIBRARY_H

#include "swift/Basic/LLVM.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include <string>

namespace swift {
Expand Down
10 changes: 4 additions & 6 deletions include/swift/AST/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@
#include "swift/Basic/STLExtras.h"
#include "swift/Basic/SourceLoc.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MD5.h"
#include <set>

namespace clang {
class Module;
Expand Down Expand Up @@ -646,8 +643,9 @@ class ModuleDecl : public DeclContext, public TypeDecl {

/// Find all SPI names imported from \p importedModule by this module,
/// collecting the identifiers in \p spiGroups.
void lookupImportedSPIGroups(const ModuleDecl *importedModule,
SmallVectorImpl<Identifier> &spiGroups) const;
void lookupImportedSPIGroups(
const ModuleDecl *importedModule,
llvm::SmallSetVector<Identifier, 4> &spiGroups) const;

/// \sa getImportedModules
enum class ImportFilterKind {
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/ModuleDependencies.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "swift/Basic/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringSet.h"
#include <string>
Expand Down
2 changes: 0 additions & 2 deletions include/swift/AST/ModuleLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include "swift/Basic/Located.h"
#include "swift/Basic/SourceLoc.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "swift/AST/ModuleDependencies.h"

Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/NameLookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef SWIFT_AST_NAME_LOOKUP_H
#define SWIFT_AST_NAME_LOOKUP_H

#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "swift/AST/ASTVisitor.h"
#include "swift/AST/Identifier.h"
Expand Down
2 changes: 0 additions & 2 deletions include/swift/AST/ProtocolConformance.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/TinyPtrVector.h"
#include <utility>

namespace swift {
Expand Down
7 changes: 5 additions & 2 deletions include/swift/AST/SourceFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "swift/AST/FileUnit.h"
#include "swift/AST/SynthesizedFileUnit.h"
#include "swift/Basic/Debug.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallPtrSet.h"

namespace swift {

Expand Down Expand Up @@ -338,8 +340,9 @@ class SourceFile final : public FileUnit {
/// Find all SPI names imported from \p importedModule by this file,
/// collecting the identifiers in \p spiGroups.
virtual void
lookupImportedSPIGroups(const ModuleDecl *importedModule,
SmallVectorImpl<Identifier> &spiGroups) const override;
lookupImportedSPIGroups(
const ModuleDecl *importedModule,
llvm::SmallSetVector<Identifier, 4> &spiGroups) const override;

// Is \p targetDecl accessible as an explictly imported SPI from this file?
bool isImportedAsSPI(const ValueDecl *targetDecl) const;
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/Stmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "swift/AST/TypeAlignments.h"
#include "swift/Basic/Debug.h"
#include "swift/Basic/NullablePtr.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Support/TrailingObjects.h"

namespace swift {
Expand Down
1 change: 0 additions & 1 deletion include/swift/Basic/OutputFileMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
Expand Down
1 change: 0 additions & 1 deletion include/swift/Basic/SourceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/SourceLoc.h"
#include "clang/Basic/FileManager.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/SourceMgr.h"
#include <map>

Expand Down
1 change: 0 additions & 1 deletion include/swift/Basic/SupplementaryOutputPaths.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define SWIFT_FRONTEND_SUPPLEMENTARYOUTPUTPATHS_H

#include "swift/Basic/LLVM.h"
#include "llvm/ADT/Optional.h"

#include <string>

Expand Down
5 changes: 4 additions & 1 deletion include/swift/Basic/TypeID.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
#ifndef SWIFT_BASIC_TYPEID_H
#define SWIFT_BASIC_TYPEID_H

#include "llvm/ADT/StringRef.h"
// NOTE: Most of these includes are for CTypeIDZone.def and DefineTypeIDZone.h.
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/ADT/StringRef.h"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>

Expand Down
2 changes: 0 additions & 2 deletions include/swift/Basic/UUID.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
#include <array>

Expand Down
1 change: 0 additions & 1 deletion include/swift/Driver/Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/LLVM.h"
#include "swift/Driver/Util.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Support/Chrono.h"
Expand Down
1 change: 0 additions & 1 deletion include/swift/Driver/Compilation.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "swift/Driver/Driver.h"
#include "swift/Driver/Job.h"
#include "swift/Driver/Util.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Chrono.h"

Expand Down
1 change: 0 additions & 1 deletion include/swift/Driver/Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "swift/Basic/Sanitizers.h"
#include "swift/Driver/Util.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"

#include <functional>
Expand Down
4 changes: 0 additions & 4 deletions include/swift/Driver/FineGrainedDependencyDriverGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
#include "swift/Basic/OptionSet.h"
#include "swift/Driver/Job.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/PointerLikeTypeTraits.h"
Expand Down
1 change: 0 additions & 1 deletion include/swift/Driver/Job.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "swift/Driver/Action.h"
#include "swift/Driver/Util.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
Expand Down
1 change: 0 additions & 1 deletion include/swift/Frontend/FrontendInputsAndOutputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/SupplementaryOutputPaths.h"
#include "swift/Frontend/InputFile.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/MapVector.h"

#include <string>
#include <vector>
Expand Down
1 change: 0 additions & 1 deletion include/swift/Frontend/InputFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/SupplementaryOutputPaths.h"
#include "llvm/Support/MemoryBuffer.h"
#include <string>
#include <vector>

namespace swift {

Expand Down
1 change: 0 additions & 1 deletion include/swift/IDE/CompletionInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "swift/Frontend/Frontend.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/MemoryBuffer.h"
Expand Down
1 change: 0 additions & 1 deletion include/swift/IDE/SourceEntityWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "swift/Basic/LLVM.h"
#include "swift/Basic/SourceLoc.h"
#include "llvm/ADT/PointerUnion.h"
#include <string>

namespace clang {
class Module;
Expand Down
Loading