mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
eda20f933b
commit
336e56e67d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user