Skip to content

Commit cc0d919

Browse files
committed
Remove Compiled Source
1 parent 2475095 commit cc0d919

20 files changed

+12
-120
lines changed

include/swift/AST/DiagnosticsDriver.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ WARNING(warn_use_filelists_deprecated, none,
155155
"the option '-driver-use-filelists' is deprecated; use "
156156
"'-driver-filelist-threshold=0' instead", ())
157157

158-
WARNING(warn_unable_to_load_compiled_swift, none,
159-
"unable to load previously compiled swift file \"%0\", %1",
160-
(StringRef, StringRef))
161-
162158
WARNING(warn_unable_to_load_primary, none,
163159
"unable to load primary swift file \"%0\", %1",
164160
(StringRef, StringRef))

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ ERROR(error_mode_cannot_emit_dependencies,none,
109109
"this mode does not support emitting dependency files", ())
110110
ERROR(error_mode_cannot_emit_reference_dependencies,none,
111111
"this mode does not support emitting reference dependency files", ())
112-
ERROR(error_mode_cannot_emit_compiled_source,none,
113-
"this mode does not support emitting compiled source files", ())
114112
ERROR(error_mode_cannot_emit_header,none,
115113
"this mode does not support emitting Objective-C headers", ())
116114
ERROR(error_mode_cannot_emit_loaded_module_trace,none,
@@ -131,8 +129,6 @@ ERROR(cannot_emit_ir_skipping_function_bodies,none,
131129

132130
WARNING(emit_reference_dependencies_without_primary_file,none,
133131
"ignoring -emit-reference-dependencies (requires -primary-file)", ())
134-
WARNING(emit_compiled_source_without_primary_file,none,
135-
"ignoring -emit-compiled-source (requires -primary-file)", ())
136132

137133
ERROR(error_bad_module_name,none,
138134
"module name \"%0\" is not a valid identifier"
@@ -332,10 +328,6 @@ ERROR(error_invalid_coverage_prefix_map, none,
332328
"values for '-coverage-prefix-map' must be in the format "
333329
"'original=remapped', but '%0' was provided", (StringRef))
334330

335-
ERROR(error_unable_to_write_compiled_source_file, none,
336-
"unable to write compiled source file: '$0': %1", (StringRef, StringRef))
337-
338-
339331
ERROR(invalid_vfs_overlay_file,none,
340332
"invalid virtual overlay file '%0'", (StringRef))
341333

include/swift/Basic/FileTypes.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ TYPE("diagnostics", SerializedDiagnostics, "dia", "")
6262
TYPE("objc-header", ObjCHeader, "h", "")
6363
TYPE("swift-dependencies", SwiftDeps, "swiftdeps", "")
6464
TYPE("external-swift-dependencies", ExternalSwiftDeps, "swiftdeps.external", "")
65-
TYPE("compiled-source", CompiledSource, "compiledsource", "")
6665
TYPE("remap", Remapping, "remap", "")
6766
TYPE("imported-modules", ImportedModules, "importedmodules", "")
6867
TYPE("tbd", TBD, "tbd", "")

include/swift/Basic/FileTypes.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ static inline void forAllTypes(llvm::function_ref<void(file_types::ID)> fn) {
6868
/// such file type.
6969
static inline void
7070
forEachIncrementalOutputType(llvm::function_ref<void(file_types::ID)> fn) {
71-
static const std::vector<file_types::ID> incrementalOutputTypes = {
72-
file_types::TY_SwiftDeps,
73-
file_types::TY_CompiledSource};
74-
for (auto type : incrementalOutputTypes)
75-
fn(type);
71+
fn(file_types::TY_SwiftDeps);
7672
}
7773

7874
} // end namespace file_types

include/swift/Basic/SupplementaryOutputPaths.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ struct SupplementaryOutputPaths {
8383
/// \sa DependencyGraph
8484
std::string ReferenceDependenciesFilePath;
8585

86-
/// The path to which we should save the source code of a primary source file
87-
/// to be compiled. Used to diff sources of primary inputs.
88-
std::string CompiledSourceFilePath;
89-
9086
/// Path to a file which should contain serialized diagnostics for this
9187
/// frontend invocation.
9288
///
@@ -174,8 +170,6 @@ struct SupplementaryOutputPaths {
174170
fn(DependenciesFilePath);
175171
if (!ReferenceDependenciesFilePath.empty())
176172
fn(ReferenceDependenciesFilePath);
177-
if (!CompiledSourceFilePath.empty())
178-
fn(CompiledSourceFilePath);
179173
if (!SerializedDiagnosticsPath.empty())
180174
fn(SerializedDiagnosticsPath);
181175
if (!FixItsOutputPath.empty())

include/swift/Frontend/Frontend.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ class CompilerInvocation {
362362
std::string getModuleOutputPathForAtMostOnePrimary() const;
363363
std::string
364364
getReferenceDependenciesFilePathForPrimary(StringRef filename) const;
365-
std::string getCompiledSourceFilePathForPrimary(StringRef filename) const;
366365
std::string getSerializedDiagnosticsPathForAtMostOnePrimary() const;
367366

368367
/// TBDPath only makes sense in whole module compilation mode,
@@ -650,11 +649,6 @@ class CompilerInstance {
650649
getPrimarySpecificPathsForAtMostOnePrimary() const;
651650
const PrimarySpecificPaths &
652651
getPrimarySpecificPathsForSourceFile(const SourceFile &SF) const;
653-
654-
/// Return true for error
655-
bool emitCompiledSource(DiagnosticEngine &diags,
656-
const SourceFile *primaryFile,
657-
StringRef outputPath) const;
658652
};
659653

660654
} // namespace swift

include/swift/Frontend/FrontendInputsAndOutputs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ class FrontendInputsAndOutputs {
243243

244244
bool hasDependenciesPath() const;
245245
bool hasReferenceDependenciesPath() const;
246-
bool hasCompiledSourcePath() const;
247246
bool hasObjCHeaderOutputPath() const;
248247
bool hasLoadedModuleTracePath() const;
249248
bool hasModuleOutputPath() const;

include/swift/Frontend/FrontendOptions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ class FrontendOptions {
374374
private:
375375
static bool canActionEmitDependencies(ActionType);
376376
static bool canActionEmitReferenceDependencies(ActionType);
377-
static bool canActionEmitCompiledSource(ActionType);
378377
static bool canActionEmitObjCHeader(ActionType);
379378
static bool canActionEmitLoadedModuleTrace(ActionType);
380379
static bool canActionEmitModule(ActionType);

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ def emit_reference_dependencies_path
6060
: Separate<["-"], "emit-reference-dependencies-path">, MetaVarName<"<path>">,
6161
HelpText<"Output Swift-style dependencies file to <path>">;
6262

63-
64-
def emit_compiled_source : Flag<["-"], "emit-compiled-source">,
65-
HelpText<"Emit compiled source">;
66-
def emit_compiled_source_path
67-
: Separate<["-"], "emit-compiled-source-path">, MetaVarName<"<path>">,
68-
HelpText<"Output compiled source to <path>">;
69-
7063
def emit_fixits_path
7164
: Separate<["-"], "emit-fixits-path">, MetaVarName<"<path>">,
7265
HelpText<"Output compiler fixits as source edits to <path>">;

include/swift/Option/Options.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ def driver_show_incremental : Flag<["-"], "driver-show-incremental">,
108108
def driver_show_job_lifecycle : Flag<["-"], "driver-show-job-lifecycle">,
109109
InternalDebugOpt,
110110
HelpText<"Show every step in the lifecycle of driver jobs">;
111-
def driver_dump_swift_ranges : Flag<["-"], "driver-dump-swift-ranges">,
112-
InternalDebugOpt,
113-
HelpText<"Show the unparsed ranges read upon startup">;
114-
def driver_dump_compiled_source_diffs : Flag<["-"], "driver-dump-compiled-source-diffs">,
115-
InternalDebugOpt,
116-
HelpText<"Show the compiled source diffs read upon startup">;
117111
def driver_use_filelists : Flag<["-"], "driver-use-filelists">,
118112
InternalDebugOpt, HelpText<"Pass input files as filelists whenever possible">;
119113
def driver_filelist_threshold : Separate<["-"], "driver-filelist-threshold">,

0 commit comments

Comments
 (0)