mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +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:
@@ -52,7 +52,7 @@ bool llvm::IsArchive(const std::string &FN) {
|
|||||||
bool llvm::IsBytecode(const std::string &FN) {
|
bool llvm::IsBytecode(const std::string &FN) {
|
||||||
// Inspect the beginning of the file to see if it contains the LLVM
|
// Inspect the beginning of the file to see if it contains the LLVM
|
||||||
// bytecode format magic string.
|
// 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
|
/// IsSharedObject - Returns trus IFF the file named FN appears to be a shared
|
||||||
|
Reference in New Issue
Block a user