Add prototypes for CheckMagic, IsArchive, and IsBytecode.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 11 Nov 2003 21:53:29 +0000 (21:53 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 11 Nov 2003 21:53:29 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9900 91177308-0d34-0410-b5e6-96231b3b80d8

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

index d55ba52a98aba1516490a7ca985ed0231302b1a9..0dfa625362173a7e765f973ad54f86ea96004d48 100644 (file)
 
 #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);
 
index d55ba52a98aba1516490a7ca985ed0231302b1a9..0dfa625362173a7e765f973ad54f86ea96004d48 100644 (file)
 
 #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);