[llvm-commits] CVS: llvm/include/Support/FileUtilities.h

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 11 15:54:01 PST 2003


Changes in directory llvm/include/Support:

FileUtilities.h updated: 1.6 -> 1.7

---
Log message:

Add prototypes for CheckMagic, IsArchive, and IsBytecode.

---
Diffs of the changes:  (+17 -2)

Index: llvm/include/Support/FileUtilities.h
diff -u llvm/include/Support/FileUtilities.h:1.6 llvm/include/Support/FileUtilities.h:1.7
--- llvm/include/Support/FileUtilities.h:1.6	Tue Nov 11 12:27:11 2003
+++ llvm/include/Support/FileUtilities.h	Tue Nov 11 15:53:29 2003
@@ -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);
 





More information about the llvm-commits mailing list