aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 7bb7988..9c343ea 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -553,6 +553,11 @@ error_code native(const Twine &path, SmallVectorImpl<char> &result) {
return make_error_code(errc::success);
}
+error_code filename(const StringRef &path, StringRef &result) {
+ result = *(--end(path));
+ return make_error_code(errc::success);
+}
+
}
}
}