diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-11 21:53:29 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-11 21:53:29 +0000 |
commit | f33d00f0d8ffb41a57ce86672de5c3590903db01 (patch) | |
tree | c8e2289a05bed6a23b3b0266f0017d7a7be7fdc8 /include/llvm/Support/FileUtilities.h | |
parent | 7879206b0f7d4c68a459145d6c17f0bf924fcc40 (diff) | |
download | llvm-f33d00f0d8ffb41a57ce86672de5c3590903db01.tar.gz llvm-f33d00f0d8ffb41a57ce86672de5c3590903db01.tar.bz2 llvm-f33d00f0d8ffb41a57ce86672de5c3590903db01.tar.xz |
Add prototypes for CheckMagic, IsArchive, and IsBytecode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index d55ba52a98..0dfa625362 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/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); |