} // namespace dsymutil
bool linkDwarf(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
- const DebugMap &DM, const LinkOptions &Options) {
- DwarfLinker Linker(OutFile, BinHolder, Options);
+ const DebugMap &DM, LinkOptions Options) {
+ DwarfLinker Linker(OutFile, BinHolder, std::move(Options));
return Linker.link(DM);
}
class DwarfLinker {
public:
DwarfLinker(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
- const LinkOptions &Options)
- : OutFile(OutFile), BinHolder(BinHolder), Options(Options) {}
+ LinkOptions Options)
+ : OutFile(OutFile), BinHolder(BinHolder), Options(std::move(Options)) {}
/// Link the contents of the DebugMap.
bool link(const DebugMap &);
/// be uniqued and sorted and there are only few entries expected
/// per compile unit, which is why this is a std::map.
std::map<std::string, std::string> ParseableSwiftInterfaces;
-
+
bool ModuleCacheHintDisplayed = false;
bool ArchiveHintDisplayed = false;
};
/// Link the Dwarf debug info as directed by the passed DebugMap \p DM into a
/// DwarfFile named \p OutputFilename. \returns false if the link failed.
bool linkDwarf(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
- const DebugMap &DM, const LinkOptions &Options);
+ const DebugMap &DM, LinkOptions Options);
} // end namespace dsymutil
} // end namespace llvm