mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +00:00
Don't treat bitcode files specially in llvm-ar.
We really want bitcode files to behave as regular object files in archives, so we don't need to track that a member is bitcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -183,13 +183,6 @@ bool Archive::addFileBefore(StringRef filePath, iterator where,
|
||||
sys::fs::file_magic type;
|
||||
if (sys::fs::identify_magic(mbr->path, type))
|
||||
type = sys::fs::file_magic::unknown;
|
||||
switch (type) {
|
||||
case sys::fs::file_magic::bitcode:
|
||||
flags |= ArchiveMember::BitcodeFlag;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
mbr->flags = flags;
|
||||
members.insert(where,mbr);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user