[llvm-commits] CVS: llvm/lib/Support/FileUtilities.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Nov 8 14:03:43 PST 2004
Changes in directory llvm/lib/Support:
FileUtilities.cpp updated: 1.26 -> 1.27
---
Log message:
Handle headers for compressed bytecode files
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Support/FileUtilities.cpp
diff -u llvm/lib/Support/FileUtilities.cpp:1.26 llvm/lib/Support/FileUtilities.cpp:1.27
--- llvm/lib/Support/FileUtilities.cpp:1.26 Sun Sep 19 23:13:43 2004
+++ llvm/lib/Support/FileUtilities.cpp Mon Nov 8 16:03:32 2004
@@ -52,7 +52,7 @@
bool llvm::IsBytecode(const std::string &FN) {
// Inspect the beginning of the file to see if it contains the LLVM
// bytecode format magic string.
- return CheckMagic (FN, "llvm");
+ return CheckMagic(FN, "llvm") || CheckMagic(FN, "llvc");
}
/// IsSharedObject - Returns trus IFF the file named FN appears to be a shared
More information about the llvm-commits
mailing list