summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1df8148b01308a9034d3de492f170b4306996f83 (patch)
treed45843b6c4ed8967ff717eedb9e915b31702374f /llvm/lib/Support/FileUtilities.cpp
parent465e7fb8ef4bcd5b82a586c4824b6dc54c90f8ff (diff)
downloadbcm5719-llvm-1df8148b01308a9034d3de492f170b4306996f83.tar.gz
bcm5719-llvm-1df8148b01308a9034d3de492f170b4306996f83.zip
Handle headers for compressed bytecode files
llvm-svn: 17634
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
-rw-r--r--llvm/lib/Support/FileUtilities.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp
index 3f2f97b22e8..51f49772b1c 100644
--- a/llvm/lib/Support/FileUtilities.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud