Expose functionality to query if a file is an ELF shared object.
authorMisha Brukman <brukman+llvm@gmail.com>
Mon, 24 Nov 2003 05:28:39 +0000 (05:28 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Mon, 24 Nov 2003 05:28:39 +0000 (05:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10194 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/FileUtilities.h
include/llvm/Support/FileUtilities.h

index c276ec7aaa6538b0aa3fb0683d353f4d13f24769..4c02605400a07ee8d1c304a2742354b4cdd89f65 100644 (file)
@@ -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.
 ///
index c276ec7aaa6538b0aa3fb0683d353f4d13f24769..4c02605400a07ee8d1c304a2742354b4cdd89f65 100644 (file)
@@ -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.
 ///