mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Support/Path: Deprecate Path::hasMagicNumber and replace all uses with fs::has_magic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122589 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -140,7 +140,11 @@ sys::IdentifyFileType(const char *magic, unsigned length) {
|
||||
|
||||
bool
|
||||
Path::isArchive() const {
|
||||
return hasMagicNumber("!<arch>\012");
|
||||
std::string Magic;
|
||||
if (getMagicNumber(Magic, 8))
|
||||
if (IdentifyFileType(Magic.c_str(), Magic.length()) == Archive_FileType)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user