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 | 6d1e379158fa2c9801979ee4779044d2d3ad38e7 (patch) | |
| tree | ac7fe557c374830bc68d9447a32de86839044c20 /llvm | |
| parent | 7285207486d19a02ebbec9f75268f30479c55801 (diff) | |
| download | bcm5719-llvm-6d1e379158fa2c9801979ee4779044d2d3ad38e7.tar.gz bcm5719-llvm-6d1e379158fa2c9801979ee4779044d2d3ad38e7.zip | |
Remove Path::isObjectFile.
llvm-svn: 184305
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/PathV1.h | 11 | ||||
| -rw-r--r-- | llvm/lib/Support/Path.cpp | 8 |
2 files changed, 0 insertions, 19 deletions
diff --git a/llvm/include/llvm/Support/PathV1.h b/llvm/include/llvm/Support/PathV1.h index fe2dd9aff32..f4c0ef88cb1 100644 --- a/llvm/include/llvm/Support/PathV1.h +++ b/llvm/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/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 7ddaf1e89ed..8e229ab88a3 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/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()) { |

