mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 12:49:50 +00:00
ObjectFile: Add support for mach-o-style dSYM companion files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2aaaf3a75
commit
836623420d
@ -733,6 +733,7 @@ namespace sys {
|
||||
Mach_O_DynamicLinker_FileType, ///< The Mach-O dynamic linker
|
||||
Mach_O_Bundle_FileType, ///< Mach-O Bundle file
|
||||
Mach_O_DynamicallyLinkedSharedLibStub_FileType, ///< Mach-O Shared lib stub
|
||||
Mach_O_DSYMCompanion_FileType, ///< Mach-O dSYM companion file
|
||||
COFF_FileType ///< COFF object file or lib
|
||||
};
|
||||
|
||||
|
@ -45,6 +45,7 @@ ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
|
||||
case sys::Mach_O_DynamicLinker_FileType:
|
||||
case sys::Mach_O_Bundle_FileType:
|
||||
case sys::Mach_O_DynamicallyLinkedSharedLibStub_FileType:
|
||||
case sys::Mach_O_DSYMCompanion_FileType:
|
||||
return createMachOObjectFile(Object);
|
||||
case sys::COFF_FileType:
|
||||
return createCOFFObjectFile(Object);
|
||||
|
@ -121,7 +121,7 @@ sys::IdentifyFileType(const char *magic, unsigned length) {
|
||||
case 7: return Mach_O_DynamicLinker_FileType;
|
||||
case 8: return Mach_O_Bundle_FileType;
|
||||
case 9: return Mach_O_DynamicallyLinkedSharedLibStub_FileType;
|
||||
case 10: break; // FIXME: MH_DSYM companion file with only debug.
|
||||
case 10: return Mach_O_DSYMCompanion_FileType;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user