mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
eliminate residual cruft related to recognizing bytecode
files. bitcode files are the only LLVM format left. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37945 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -47,14 +47,6 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
|
||||
if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE)
|
||||
return Bitcode_FileType;
|
||||
break;
|
||||
case 'l':
|
||||
if (magic[1] == 'l' && magic[2] == 'v') {
|
||||
if (magic[3] == 'c')
|
||||
return CompressedBytecode_FileType;
|
||||
else if (magic[3] == 'm')
|
||||
return Bytecode_FileType;
|
||||
}
|
||||
break;
|
||||
case '!':
|
||||
if (length >= 8)
|
||||
if (memcmp(magic,"!<arch>\n",8) == 0)
|
||||
@ -164,14 +156,6 @@ std::string Path::GetDLLSuffix() {
|
||||
return LTDL_SHLIB_EXT;
|
||||
}
|
||||
|
||||
bool
|
||||
Path::isBytecodeFile() const {
|
||||
std::string actualMagic;
|
||||
if (!getMagicNumber(actualMagic, 4))
|
||||
return false;
|
||||
return actualMagic == "llvc" || actualMagic == "llvm";
|
||||
}
|
||||
|
||||
bool
|
||||
Path::isBitcodeFile() const {
|
||||
std::string actualMagic;
|
||||
|
Reference in New Issue
Block a user