mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Handle bitcode wrappers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
694caf56f1
commit
54ce536a2d
@ -194,7 +194,10 @@ Path::isBitcodeFile() const {
|
||||
std::string actualMagic;
|
||||
if (!getMagicNumber(actualMagic, 4))
|
||||
return false;
|
||||
return actualMagic == "BC\xC0\xDE";
|
||||
LLVMFileType FT =
|
||||
IdentifyFileType(actualMagic.c_str(),
|
||||
static_cast<unsigned>(actualMagic.length()));
|
||||
return FT == Bitcode_FileType;
|
||||
}
|
||||
|
||||
bool Path::hasMagicNumber(const std::string &Magic) const {
|
||||
|
Loading…
Reference in New Issue
Block a user