From 6652e8f699d78a6521eb47e6525b7b157a3575b7 Mon Sep 17 00:00:00 2001 From: Brian Gesiak Date: Wed, 4 Oct 2017 00:34:56 -0400 Subject: [PATCH] [Driver] Remove obsolete "APPLE-ONLY" comments A post-commit reviewer on https://github.com/apple/swift/pull/10716 asked that the comments be removed. Remove them, as they're no longer demarcating code that is internal to Apple. --- include/swift/Driver/Types.def | 3 --- lib/Driver/Driver.cpp | 2 -- lib/Driver/ToolChains.cpp | 4 ---- 3 files changed, 9 deletions(-) diff --git a/include/swift/Driver/Types.def b/include/swift/Driver/Types.def index 98cb9b389b290..14c69b43b4c7b 100644 --- a/include/swift/Driver/Types.def +++ b/include/swift/Driver/Types.def @@ -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", "") diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 265bbea7ab432..f39210909e4ba 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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; diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 968bf8c085c28..83bfba47cabb1 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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;