Remove Path::isObjectFile.

llvm-svn: 184305
This commit is contained in:
Rafael Espindola 2013-06-19 14:25:38 +00:00
parent 9f3be55a57
commit 24a81dcac4
2 changed files with 0 additions and 19 deletions

View File

@ -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

View File

@ -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()) {