Handle headers for compressed bytecode files

llvm-svn: 17634
This commit is contained in:
Misha Brukman 2004-11-08 22:03:32 +00:00
parent 465e7fb8ef
commit 1df8148b01
1 changed files with 1 additions and 1 deletions

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