[llvm] r184305 - Remove Path::isObjectFile.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 19 07:25:38 PDT 2013
Author: rafael
Date: Wed Jun 19 09:25:38 2013
New Revision: 184305
URL: http://llvm.org/viewvc/llvm-project?rev=184305&view=rev
Log:
Remove Path::isObjectFile.
Modified:
llvm/trunk/include/llvm/Support/PathV1.h
llvm/trunk/lib/Support/Path.cpp
Modified: llvm/trunk/include/llvm/Support/PathV1.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PathV1.h?rev=184305&r1=184304&r2=184305&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PathV1.h (original)
+++ llvm/trunk/include/llvm/Support/PathV1.h Wed Jun 19 09:25:38 2013
@@ -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
Modified: llvm/trunk/lib/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Path.cpp?rev=184305&r1=184304&r2=184305&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Path.cpp (original)
+++ llvm/trunk/lib/Support/Path.cpp Wed Jun 19 09:25:38 2013
@@ -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()) {
More information about the llvm-commits
mailing list