diff --git a/include/Support/FileUtilities.h b/include/Support/FileUtilities.h index c276ec7aaa6..4c02605400a 100644 --- a/include/Support/FileUtilities.h +++ b/include/Support/FileUtilities.h @@ -34,6 +34,11 @@ bool IsArchive (const std::string &FN); /// bool IsBytecode (const std::string &FN); +/// IsSharedObject - Returns trus IFF the file named FN appears to be a shared +/// object with an ELF header. The file named FN must exist. +/// +bool IsSharedObject(const std::string &FN); + /// FileOpenable - Returns true IFF Filename names an existing regular file /// which we can successfully open. /// diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index c276ec7aaa6..4c02605400a 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -34,6 +34,11 @@ bool IsArchive (const std::string &FN); /// bool IsBytecode (const std::string &FN); +/// IsSharedObject - Returns trus IFF the file named FN appears to be a shared +/// object with an ELF header. The file named FN must exist. +/// +bool IsSharedObject(const std::string &FN); + /// FileOpenable - Returns true IFF Filename names an existing regular file /// which we can successfully open. ///