aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/Support/FileUtilities.h5
-rw-r--r--include/llvm/Support/FileUtilities.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/Support/FileUtilities.h b/include/Support/FileUtilities.h
index c276ec7..4c02605 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 c276ec7..4c02605 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.
///