mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
For PR1302:
Adjust useage of sys::Path::FileType for new enumerator names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8bb5fd17f9
commit
20c348978e
@ -125,10 +125,10 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
|
||||
|
||||
// Determine what kind of file it is
|
||||
switch (sys::IdentifyFileType(signature,4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= CompressedBytecodeFlag;
|
||||
flags &= ~CompressedFlag;
|
||||
break;
|
||||
|
@ -205,10 +205,10 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error)
|
||||
|
||||
// Determine if this is a bytecode file
|
||||
switch (sys::IdentifyFileType(At, 4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= ArchiveMember::BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= ArchiveMember::CompressedBytecodeFlag;
|
||||
flags &= ~ArchiveMember::CompressedFlag;
|
||||
break;
|
||||
|
@ -178,10 +178,10 @@ Archive::addFileBefore(const sys::Path& filePath, iterator where,
|
||||
std::string magic;
|
||||
mbr->path.getMagicNumber(magic,4);
|
||||
switch (sys::IdentifyFileType(magic.c_str(),4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= ArchiveMember::BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= ArchiveMember::CompressedBytecodeFlag;
|
||||
break;
|
||||
default:
|
||||
|
@ -125,10 +125,10 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
|
||||
|
||||
// Determine what kind of file it is
|
||||
switch (sys::IdentifyFileType(signature,4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= CompressedBytecodeFlag;
|
||||
flags &= ~CompressedFlag;
|
||||
break;
|
||||
|
@ -205,10 +205,10 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error)
|
||||
|
||||
// Determine if this is a bytecode file
|
||||
switch (sys::IdentifyFileType(At, 4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= ArchiveMember::BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= ArchiveMember::CompressedBytecodeFlag;
|
||||
flags &= ~ArchiveMember::CompressedFlag;
|
||||
break;
|
||||
|
@ -178,10 +178,10 @@ Archive::addFileBefore(const sys::Path& filePath, iterator where,
|
||||
std::string magic;
|
||||
mbr->path.getMagicNumber(magic,4);
|
||||
switch (sys::IdentifyFileType(magic.c_str(),4)) {
|
||||
case sys::BytecodeFileType:
|
||||
case sys::Bytecode_FileType:
|
||||
flags |= ArchiveMember::BytecodeFlag;
|
||||
break;
|
||||
case sys::CompressedBytecodeFileType:
|
||||
case sys::CompressedBytecode_FileType:
|
||||
flags |= ArchiveMember::CompressedBytecodeFlag;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user