From 9009356e95e6bdda16e55362a9a1002651acd6fa Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 20 Mar 2020 16:27:23 -0700 Subject: [PATCH] Revert "Allow remapping the sysroot with -fdebug-prefix-map." This reverts commit 6725c4836a5b3c11227869a6f456019a244aa29f. --- lib/DWARFLinker/DWARFLinker.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/DWARFLinker/DWARFLinker.cpp b/lib/DWARFLinker/DWARFLinker.cpp index fbc3a3e60cc..8464c04f801 100644 --- a/lib/DWARFLinker/DWARFLinker.cpp +++ b/lib/DWARFLinker/DWARFLinker.cpp @@ -1914,15 +1914,6 @@ static uint64_t getDwoId(const DWARFDie &CUDie, const DWARFUnit &Unit) { return 0; } -static std::string remapPath(std::string Path, - const objectPrefixMap &ObjectPrefixMap) { - StringRef PathRef(Path); - for (const auto &Entry : ObjectPrefixMap) - if (PathRef.startswith(Entry.first)) - return (Twine(Entry.second) + PathRef.substr(Entry.first.size())).str(); - return Path; -} - bool DWARFLinker::registerModuleReference( DWARFDie CUDie, const DWARFUnit &Unit, const DwarfFile &File, OffsetsStringPool &StringPool, UniquingStringPool &UniquingStringPool,