summaryrefslogtreecommitdiffstats
path: root/lld/ELF/DriverUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/DriverUtils.cpp')
-rw-r--r--lld/ELF/DriverUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp
index 03072a5733e..f6ed1d555ed 100644
--- a/lld/ELF/DriverUtils.cpp
+++ b/lld/ELF/DriverUtils.cpp
@@ -139,7 +139,7 @@ static std::string quote(StringRef S) {
static std::string rewritePath(StringRef S) {
if (fs::exists(S))
- return getDestPath(S);
+ return relativeToRoot(S);
return S;
}
OpenPOWER on IntegriCloud