Skip to content

Commit b8e2f37

Browse files
[NFC] Simplify Supplementary Outputs enumeration
Simplify supplementary output enumeration in output converter.
1 parent 35e6915 commit b8e2f37

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

lib/Frontend/ArgsToFrontendOutputsConverter.cpp

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -587,24 +587,9 @@ createFromTypeToPathMap(const TypeToPathMap *map) {
587587
if (!map)
588588
return paths;
589589
const std::pair<file_types::ID, std::string &> typesAndStrings[] = {
590-
{file_types::TY_ClangHeader, paths.ClangHeaderOutputPath},
591-
{file_types::TY_SwiftModuleFile, paths.ModuleOutputPath},
592-
{file_types::TY_SwiftModuleDocFile, paths.ModuleDocOutputPath},
593-
{file_types::TY_SwiftSourceInfoFile, paths.ModuleSourceInfoOutputPath},
594-
{file_types::TY_Dependencies, paths.DependenciesFilePath},
595-
{file_types::TY_SwiftDeps, paths.ReferenceDependenciesFilePath},
596-
{file_types::TY_SerializedDiagnostics, paths.SerializedDiagnosticsPath},
597-
{file_types::TY_ModuleTrace, paths.LoadedModuleTracePath},
598-
{file_types::TY_TBD, paths.TBDPath},
599-
{file_types::TY_SwiftModuleInterfaceFile,
600-
paths.ModuleInterfaceOutputPath},
601-
{file_types::TY_SwiftModuleSummaryFile, paths.ModuleSummaryOutputPath},
602-
{file_types::TY_PrivateSwiftModuleInterfaceFile,
603-
paths.PrivateModuleInterfaceOutputPath},
604-
{file_types::TY_YAMLOptRecord, paths.YAMLOptRecordPath},
605-
{file_types::TY_BitstreamOptRecord, paths.BitstreamOptRecordPath},
606-
{file_types::TY_SwiftABIDescriptor, paths.ABIDescriptorOutputPath},
607-
{file_types::TY_ConstValues, paths.ConstValuesOutputPath}
590+
#define OUTPUT(NAME, TYPE) {file_types::TYPE, paths.NAME},
591+
#include "swift/Basic/SupplementaryOutputPaths.def"
592+
#undef OUTPUT
608593
};
609594
for (const std::pair<file_types::ID, std::string &> &typeAndString :
610595
typesAndStrings) {

0 commit comments

Comments
 (0)