@@ -45,13 +45,16 @@ class DwarfStreamer : public DwarfEmitter {
4545public:
4646 DwarfStreamer (DWARFLinkerBase::OutputFileType OutFileType,
4747 raw_pwrite_stream &OutFile,
48+ DWARFLinkerBase::TranslatorFuncTy Translator,
4849 DWARFLinkerBase::MessageHandlerTy Warning)
49- : OutFile(OutFile), OutFileType(OutFileType), WarningHandler(Warning) {}
50+ : OutFile(OutFile), OutFileType(OutFileType), Translator(Translator),
51+ WarningHandler (Warning) {}
5052 virtual ~DwarfStreamer () = default ;
5153
5254 static Expected<std::unique_ptr<DwarfStreamer>> createStreamer (
5355 const Triple &TheTriple, DWARFLinkerBase::OutputFileType FileType,
54- raw_pwrite_stream &OutFile, DWARFLinkerBase::MessageHandlerTy Warning);
56+ raw_pwrite_stream &OutFile, DWARFLinkerBase::TranslatorFuncTy Translator,
57+ DWARFLinkerBase::MessageHandlerTy Warning);
5558
5659 Error init (Triple TheTriple, StringRef Swift5ReflectionSegmentName);
5760
@@ -292,6 +295,7 @@ class DwarfStreamer : public DwarfEmitter {
292295 // / The output file we stream the linked Dwarf to.
293296 raw_pwrite_stream &OutFile;
294297 DWARFLinker::OutputFileType OutFileType = DWARFLinker::OutputFileType::Object;
298+ std::function<StringRef(StringRef Input)> Translator;
295299
296300 uint64_t RangesSectionSize = 0 ;
297301 uint64_t RngListsSectionSize = 0 ;
0 commit comments