Skip to content

Commit 6c4414d

Browse files
committed
Dump output file map
1 parent cb587aa commit 6c4414d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

include/swift/AST/DiagnosticsFrontend.def

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ ERROR(error_unable_to_load_supplementary_output_file_map, none,
208208
(StringRef, StringRef))
209209

210210
ERROR(error_missing_entry_in_supplementary_output_file_map, none,
211-
"supplementary output file map '%0' is missing an entry for '%1' "
211+
"supplementary output file map '%0' is missing an entry for '%1' contents: '%2'"
212212
"(this likely indicates a compiler issue; " SWIFT_BUG_REPORT_MESSAGE ")",
213-
(StringRef, StringRef))
213+
(StringRef, StringRef, StringRef))
214214

215215
ERROR(error_repl_requires_no_input_files,none,
216216
"REPL mode requires no input files", ())

lib/Frontend/ArgsToFrontendOutputsConverter.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,13 @@ SupplementaryOutputPathsComputer::readSupplementaryOutputFileMap() const {
672672
const TypeToPathMap *mapForInput =
673673
OFM->getOutputMapForInput(input.getFileName());
674674
if (!mapForInput) {
675+
llvm::SmallString<128> t;
676+
llvm::raw_svector_ostream os(t);
677+
OFM->dump(os);
675678
Diags.diagnose(
676679
SourceLoc(),
677680
diag::error_missing_entry_in_supplementary_output_file_map,
678-
supplementaryFileMapPath, input.getFileName());
681+
supplementaryFileMapPath, input.getFileName(), os.str());
679682
hadError = true;
680683
}
681684
outputPaths.push_back(createFromTypeToPathMap(mapForInput));

0 commit comments

Comments
 (0)