summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-11 21:53:29 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-11 21:53:29 +0000
commitc30c5db05fb3b57059ca0b1e86d983e2bd7b5f28 (patch)
tree2c0a47cc75741915821456a28cbd6c29f7d30d3e
parent7aeb2b7e42ca57ea00302db486bc06d56fc4dd67 (diff)
downloadbcm5719-llvm-c30c5db05fb3b57059ca0b1e86d983e2bd7b5f28.tar.gz
bcm5719-llvm-c30c5db05fb3b57059ca0b1e86d983e2bd7b5f28.zip
Add prototypes for CheckMagic, IsArchive, and IsBytecode.
llvm-svn: 9900
-rw-r--r--llvm/include/Support/FileUtilities.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/llvm/include/Support/FileUtilities.h b/llvm/include/Support/FileUtilities.h
index d55ba52a98a..0dfa6253621 100644
--- a/llvm/include/Support/FileUtilities.h
+++ b/llvm/include/Support/FileUtilities.h
@@ -17,8 +17,23 @@
#include <string>
-/// FileOpenable - Returns true IFF Filename names an existing regular
-/// file which we can successfully open.
+/// CheckMagic - Returns true IFF the file named FN begins with Magic. FN must
+/// name a readable file.
+///
+bool CheckMagic (const std::string &FN, const std::string &Magic);
+
+/// IsArchive - Returns true IFF the file named FN appears to be a "ar" library
+/// archive. The file named FN must exist.
+///
+bool IsArchive (const std::string &FN);
+
+/// IsBytecode - Returns true IFF the file named FN appears to be an LLVM
+/// bytecode file. The file named FN must exist.
+///
+bool IsBytecode (const std::string &FN);
+
+/// FileOpenable - Returns true IFF Filename names an existing regular file
+/// which we can successfully open.
///
bool FileOpenable (const std::string &Filename);
OpenPOWER on IntegriCloud