Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions include/swift/Driver/Types.def
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ TYPE("remap", Remapping, "remap", "")
TYPE("imported-modules", ImportedModules, "importedmodules", "")
TYPE("tbd", TBD, "tbd", "")
TYPE("module-trace", ModuleTrace, "trace.json", "")

// BEGIN APPLE-ONLY OUTPUT TYPES
TYPE("index-data", IndexData, "", "")
// END APPLE-ONLY OUTPUT TYPES

// Misc types
TYPE("pcm", ClangModuleFile, "pcm", "")
Expand Down
2 changes: 0 additions & 2 deletions lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,12 +1158,10 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
OI.CompilerMode = OutputInfo::Mode::SingleCompile;
break;

// BEGIN APPLE-ONLY OUTPUT ACTIONS
case options::OPT_index_file:
OI.CompilerMode = OutputInfo::Mode::SingleCompile;
OI.CompilerOutputType = types::TY_IndexData;
break;
// END APPLE-ONLY OUTPUT ACTIONS

case options::OPT_update_code:
OI.CompilerOutputType = types::TY_Remapping;
Expand Down
4 changes: 0 additions & 4 deletions lib/Driver/ToolChains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,9 @@ ToolChain::constructInvocation(const CompileJobAction &job,
case types::TY_ImportedModules:
FrontendModeOption = "-emit-imported-modules";
break;

// BEGIN APPLE-ONLY OUTPUT TYPES
case types::TY_IndexData:
FrontendModeOption = "-typecheck";
break;
// END APPLE-ONLY OUTPUT TYPES

case types::TY_Remapping:
FrontendModeOption = "-update-code";
break;
Expand Down