summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-06-21 03:05:08 +0000
committerRui Ueyama <ruiu@google.com>2017-06-21 03:05:08 +0000
commitd2ccdbfa61e74dae3f5ac861e2ca758c0e094518 (patch)
treea818d7b120756a17b95dc49d165864276cc923a1
parent2f740f74bbe3c632a618ff452214a0dc780980c2 (diff)
downloadbcm5719-llvm-d2ccdbfa61e74dae3f5ac861e2ca758c0e094518.tar.gz
bcm5719-llvm-d2ccdbfa61e74dae3f5ac861e2ca758c0e094518.zip
Remove redundant namespace specifier.
llvm-svn: 305877
-rw-r--r--lld/ELF/Driver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 1d966b45444..692d710d6e5 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -200,6 +200,7 @@ void LinkerDriver::addFile(StringRef Path, bool WithLOption) {
error("attempted static link of dynamic object " + Path);
return;
}
+
// DSOs usually have DT_SONAME tags in their ELF headers, and the
// sonames are used to identify DSOs. But if they are missing,
// they are identified by filenames. We don't know whether the new
@@ -210,8 +211,8 @@ void LinkerDriver::addFile(StringRef Path, bool WithLOption) {
// If a file was specified by -lfoo, the directory part is not
// significant, as a user did not specify it. This behavior is
// compatible with GNU.
- Files.push_back(createSharedFile(
- MBRef, WithLOption ? sys::path::filename(Path) : Path));
+ Files.push_back(
+ createSharedFile(MBRef, WithLOption ? path::filename(Path) : Path));
return;
default:
if (InLib)
OpenPOWER on IntegriCloud