Skip to content

Commit 9e71297

Browse files
authored
Merge pull request #31393 from slavapestov/frontend-tool-cleanup
Frontend tool cleanup
2 parents 882a89b + 368d474 commit 9e71297

File tree

150 files changed

+320
-6420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+320
-6420
lines changed

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ ERROR(error_unknown_arg,none,
7676
"unknown argument: '%0'", (StringRef))
7777
ERROR(error_invalid_arg_value,none,
7878
"invalid value '%1' in '%0'", (StringRef, StringRef))
79-
WARNING(warning_type_fingerprints_require_fine_grained_dependencies,none,
80-
"Type fingerprints require fine-grained dependencies", ())
8179
WARNING(warning_cannot_multithread_batch_mode,none,
8280
"ignoring -num-threads argument; cannot multithread batch mode", ())
8381
ERROR(error_unsupported_option_argument,none,

include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,6 @@ namespace swift {
331331
/// Whether to verify the parsed syntax tree and emit related diagnostics.
332332
bool VerifySyntaxTree = false;
333333

334-
/// Emit the newer, finer-grained swiftdeps file. Eventually will support
335-
/// faster rebuilds.
336-
bool EnableFineGrainedDependencies = true;
337-
338334
/// Instead of hashing tokens inside of NominalType and ExtensionBodies into
339335
/// the interface hash, hash them into per-iterable-decl-context
340336
/// fingerprints. Fine-grained dependency types won't dirty every provides

include/swift/Driver/CoarseGrainedDependencyGraph.h

Lines changed: 0 additions & 324 deletions
This file was deleted.

include/swift/Driver/Compilation.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,6 @@ class Compilation {
275275
const bool OnlyOneDependencyFile;
276276

277277
private:
278-
/// Scaffolding to permit experimentation with finer-grained dependencies and
279-
/// faster rebuilds.
280-
const bool EnableFineGrainedDependencies;
281-
282278
/// Is the parser recording token hashes for each type body?
283279
const bool EnableTypeFingerprints;
284280

@@ -331,8 +327,6 @@ class Compilation {
331327
bool ShowDriverTimeCompilation = false,
332328
std::unique_ptr<UnifiedStatsReporter> Stats = nullptr,
333329
bool OnlyOneDependencyFile = false,
334-
bool EnableFineGrainedDependencies
335-
= LangOptions().EnableFineGrainedDependencies,
336330
bool EnableTypeFingerprints =
337331
LangOptions().EnableTypeFingerprints,
338332
bool VerifyFineGrainedDependencyGraphAfterEveryImport = false,
@@ -399,10 +393,6 @@ class Compilation {
399393
}
400394
void disableIncrementalBuild(Twine why);
401395

402-
bool getEnableFineGrainedDependencies() const {
403-
return EnableFineGrainedDependencies;
404-
}
405-
406396
bool getEnableTypeFingerprints() const { return EnableTypeFingerprints; }
407397

408398
bool getVerifyFineGrainedDependencyGraphAfterEveryImport() const {

include/swift/Driver/FineGrainedDependencyDriverGraph.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "swift/Basic/Debug.h"
1818
#include "swift/Basic/LLVM.h"
1919
#include "swift/Basic/OptionSet.h"
20-
#include "swift/Driver/CoarseGrainedDependencyGraph.h"
2120
#include "swift/Driver/Job.h"
2221
#include "llvm/ADT/ArrayRef.h"
2322
#include "llvm/ADT/DenseMap.h"
@@ -38,6 +37,9 @@
3837
// driver.
3938

4039
namespace swift {
40+
41+
class UnifiedStatsReporter;
42+
4143
namespace fine_grained_dependencies {
4244

4345
//==============================================================================

0 commit comments

Comments
 (0)