diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-19 14:25:38 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-19 14:25:38 +0000 |
commit | ca0984cb8647e5eae58e384715523476e3170d50 (patch) | |
tree | 36a9b8de64d7b187386c2ce9ac0dc7d85eb1dc9d | |
parent | f6f3be69d81e8e41f90de9913738a9ba11190221 (diff) | |
download | external_llvm-ca0984cb8647e5eae58e384715523476e3170d50.zip external_llvm-ca0984cb8647e5eae58e384715523476e3170d50.tar.gz external_llvm-ca0984cb8647e5eae58e384715523476e3170d50.tar.bz2 |
Remove Path::isObjectFile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184305 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/PathV1.h | 11 | ||||
-rw-r--r-- | lib/Support/Path.cpp | 8 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index fe2dd9a..f4c0ef8 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -233,17 +233,6 @@ namespace sys { /// @brief Determine if the path references a dynamic library. bool isDynamicLibrary() const; - /// This function determines if the path name in the object references a - /// native object file by looking at it's magic number. The term object - /// file is defined as "an organized collection of separate, named - /// sequences of binary data." This covers the obvious file formats such - /// as COFF and ELF, but it also includes llvm ir bitcode, archives, - /// libraries, etc... - /// @returns true if the file starts with the magic number for an object - /// file. - /// @brief Determine if the path references an object file. - bool isObjectFile() const; - /// This function determines if the path name references an existing file /// or directory in the file system. /// @returns true if the pathname references an existing file or diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 7ddaf1e..8e229ab 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -61,14 +61,6 @@ Path::isDynamicLibrary() const { } } -bool -Path::isObjectFile() const { - fs::file_magic type; - if (fs::identify_magic(str(), type) || type == fs::file_magic::unknown) - return false; - return true; -} - void Path::appendSuffix(StringRef suffix) { if (!suffix.empty()) { |