diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 02:02:09 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 02:02:09 +0000 |
commit | 947aa7de67c553a0bbf0ef60173f23a8747014bf (patch) | |
tree | c4c09daf5df13864c42d272bfa9727e746e6e078 /include/llvm/System/Path.h | |
parent | f4b1818728fb5cb0740cf5362faf72dd66ccf3ea (diff) |
Teach sys::Path how to recognize different kinds of object files for ELF
and Mach-O systems. Additionally, correct the Mach-O logic code to look at
byte 12 not byte 15. Hopefully this fixes the llvm-ld warning on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r-- | include/llvm/System/Path.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 6c9ab94579..84d99122b1 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -597,13 +597,24 @@ namespace sys { /// This enumeration delineates the kinds of files that LLVM knows about. enum LLVMFileType { - Unknown_FileType = 0, ///< Unrecognized file - Bytecode_FileType = 1, ///< Uncompressed bytecode file - CompressedBytecode_FileType = 2, ///< Compressed bytecode file - Archive_FileType = 3, ///< ar style archive file - ELF_FileType = 4, ///< Native ELF object file or lib - Mach_O_FileType = 5, ///< Native Mach-O object file or lib - COFF_FileType = 6 ///< COFF object file or lib + Unknown_FileType = 0, ///< Unrecognized file + Bytecode_FileType, ///< Uncompressed bytecode file + CompressedBytecode_FileType, ///< Compressed bytecode file + Archive_FileType, ///< ar style archive file + ELF_Relocatable_FileType, ///< ELF Relocatable object file + ELF_Executable_FileType, ///< ELF Executable image + ELF_SharedObject_FileType, ///< ELF dynamically linked shared lib + ELF_Core_FileType, ///< ELF core image + Mach_O_Object_FileType, ///< Mach-O Object file + Mach_O_Executable_FileType, ///< Mach-O Executable + Mach_O_FixedVirtualMemorySharedLib_FileType, ///< Mach-O Shared Lib, FVM + Mach_O_Core_FileType, ///< Mach-O Core File + Mach_O_PreloadExectuable_FileType, ///< Mach-O Preloaded Executable + Mach_O_DynamicallyLinkedSharedLib_FileType, ///< Mach-O dynlinked shared lib + 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 + COFF_FileType ///< COFF object file or lib }; /// This utility function allows any memory block to be examined in order |