1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Add prototypes for CheckMagic, IsArchive, and IsBytecode.

llvm-svn: 9900
This commit is contained in:
Brian Gaeke 2003-11-11 21:53:29 +00:00
parent de29d90691
commit b576c42af7

View File

@ -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);