Handle headers for compressed bytecode files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-11-08 22:03:32 +00:00
parent eda20f933b
commit 336e56e67d

View File

@ -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