diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-28 00:25:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-28 00:25:54 +0000 |
commit | e0df00b91f2bf13cb346ceb41a17d05e5a73a42a (patch) | |
tree | 7a2ed69d150e60470e75b284436fdf11748bea3e /lld/ELF/DriverUtils.cpp | |
parent | 3a4d0a7c17d90d78d299122b44576576da7d9311 (diff) | |
download | bcm5719-llvm-e0df00b91f2bf13cb346ceb41a17d05e5a73a42a.tar.gz bcm5719-llvm-e0df00b91f2bf13cb346ceb41a17d05e5a73a42a.zip |
Rename elf2 to elf.
llvm-svn: 262159
Diffstat (limited to 'lld/ELF/DriverUtils.cpp')
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index bbe5f9fc903..336d8509152 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -24,7 +24,7 @@ using namespace llvm; using namespace lld; -using namespace lld::elf2; +using namespace lld::elf; // Create OptTable @@ -51,8 +51,8 @@ public: }; // Parses a given list of options. -opt::InputArgList elf2::parseArgs(llvm::BumpPtrAllocator *A, - ArrayRef<const char *> Argv) { +opt::InputArgList elf::parseArgs(llvm::BumpPtrAllocator *A, + ArrayRef<const char *> Argv) { // Make InputArgList from string vectors. ELFOptTable Table; unsigned MissingIndex; @@ -78,7 +78,7 @@ opt::InputArgList elf2::parseArgs(llvm::BumpPtrAllocator *A, return Args; } -std::string elf2::findFromSearchPaths(StringRef Path) { +std::string elf::findFromSearchPaths(StringRef Path) { for (StringRef Dir : Config->SearchPaths) { std::string FullPath = buildSysrootedPath(Dir, Path); if (sys::fs::exists(FullPath)) @@ -89,7 +89,7 @@ std::string elf2::findFromSearchPaths(StringRef Path) { // Searches a given library from input search paths, which are filled // from -L command line switches. Returns a path to an existent library file. -std::string elf2::searchLibrary(StringRef Path) { +std::string elf::searchLibrary(StringRef Path) { std::vector<std::string> Names; if (Path[0] == ':') { Names.push_back(Path.drop_front()); @@ -109,7 +109,7 @@ std::string elf2::searchLibrary(StringRef Path) { // Makes a path by concatenating Dir and File. // If Dir starts with '=' the result will be preceded by Sysroot, // which can be set with --sysroot command line switch. -std::string elf2::buildSysrootedPath(StringRef Dir, StringRef File) { +std::string elf::buildSysrootedPath(StringRef Dir, StringRef File) { SmallString<128> Path; if (Dir.startswith("=")) sys::path::append(Path, Config->Sysroot, Dir.substr(1), File); |