Teach sys::Path how to recognize different kinds of object files for ELF
authorReid Spencer <rspencer@reidspencer.com>
Wed, 11 Apr 2007 02:02:09 +0000 (02:02 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 11 Apr 2007 02:02:09 +0000 (02:02 +0000)
commit947aa7de67c553a0bbf0ef60173f23a8747014bf
treec4c09daf5df13864c42d272bfa9727e746e6e078
parentf4b1818728fb5cb0740cf5362faf72dd66ccf3ea
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
include/llvm/System/Path.h
lib/System/Path.cpp