Expose functionality to query if a file is an ELF shared object.
[oota-llvm.git] / include / 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.
 ///