diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-05-02 18:51:08 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-05-02 18:51:08 +0000 |
| commit | fc28827216197d7b8ca6dc0968faf6a7a53966d8 (patch) | |
| tree | 2e70b251c9815682c467e5e310f815415b3b8d53 | |
| parent | a801dc17d93f09f8d983dc8f8634edbbd4a9ddd2 (diff) | |
| download | bcm5719-llvm-fc28827216197d7b8ca6dc0968faf6a7a53966d8.tar.gz bcm5719-llvm-fc28827216197d7b8ca6dc0968faf6a7a53966d8.zip | |
Remove unnecessary namespace specifiers.
llvm-svn: 268278
| -rw-r--r-- | lld/ELF/DriverUtils.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 763dda5609e..69d5dba5cf5 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -122,11 +122,11 @@ void elf::copyInputFile(StringRef Src) { std::string Dest = getDestPath(Src); SmallString<128> Dir(Dest); path::remove_filename(Dir); - if (std::error_code EC = sys::fs::create_directories(Dir)) { + if (std::error_code EC = fs::create_directories(Dir)) { error(EC, Dir + ": can't create directory"); return; } - if (std::error_code EC = sys::fs::copy_file(Src, Dest)) + if (std::error_code EC = fs::copy_file(Src, Dest)) error(EC, "failed to copy file: " + Dest); } @@ -150,8 +150,8 @@ static std::string rewritePath(StringRef S) { // supposed to be used by users to report an issue to LLD developers. void elf::createResponseFile(const llvm::opt::InputArgList &Args) { // Create the output directory. - if (std::error_code EC = sys::fs::create_directories( - Config->Reproduce, /*IgnoreExisting=*/false)) { + if (std::error_code EC = + fs::create_directories(Config->Reproduce, /*IgnoreExisting=*/false)) { error(EC, Config->Reproduce + ": can't create directory"); return; } @@ -160,7 +160,7 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) { SmallString<128> Path; path::append(Path, Config->Reproduce, "response.txt"); std::error_code EC; - raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None); + raw_fd_ostream OS(Path, EC, fs::OpenFlags::F_None); check(EC); // Copy the command line to response.txt while rewriting paths. @@ -191,7 +191,7 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) { std::string elf::findFromSearchPaths(StringRef Path) { for (StringRef Dir : Config->SearchPaths) { std::string FullPath = buildSysrootedPath(Dir, Path); - if (sys::fs::exists(FullPath)) + if (fs::exists(FullPath)) return FullPath; } return ""; @@ -216,8 +216,8 @@ std::string elf::searchLibrary(StringRef Path) { std::string elf::buildSysrootedPath(StringRef Dir, StringRef File) { SmallString<128> Path; if (Dir.startswith("=")) - sys::path::append(Path, Config->Sysroot, Dir.substr(1), File); + path::append(Path, Config->Sysroot, Dir.substr(1), File); else - sys::path::append(Path, Dir, File); + path::append(Path, Dir, File); return Path.str(); } |

