aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-11-08 22:03:32 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-11-08 22:03:32 +0000
commit336e56e67d6e4ebce1eadca0446f023be859d114 (patch)
treebf8f9e520840a9f5162b13b3175d524bfc703050 /lib/Support/FileUtilities.cpp
parenteda20f933b85472573bde54550e1ffef66aecfa7 (diff)
downloadexternal_llvm-336e56e67d6e4ebce1eadca0446f023be859d114.zip
external_llvm-336e56e67d6e4ebce1eadca0446f023be859d114.tar.gz
external_llvm-336e56e67d6e4ebce1eadca0446f023be859d114.tar.bz2
Handle headers for compressed bytecode files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/FileUtilities.cpp')
-rw-r--r--lib/Support/FileUtilities.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp
index 3f2f97b..51f4977 100644
--- a/lib/Support/FileUtilities.cpp
+++ b/lib/Support/FileUtilities.cpp
@@ -52,7 +52,7 @@ bool llvm::IsArchive(const std::string &FN) {
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