Respect object format choice on Darwin
authorKeno Fischer <kfischer@college.harvard.edu>
Mon, 4 May 2015 20:03:01 +0000 (20:03 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Mon, 4 May 2015 20:03:01 +0000 (20:03 +0000)
commit9cffebf3f8eabd4247c9fd465c188884bcd3911a
tree98c0e9d695a14b25042199f3b5bec40abebe15fa
parent8c0af153387bcafebb6767ae9d7c8a75677590c5
Respect object format choice on Darwin

Summary:
The object format can be set to something other than MachO, e.g.
to use ELF-on-Darwin for MCJIT. This already works on Windows, so
there's no reason it shouldn't on Darwin.

Reviewers: lhames, grosbach

Subscribers: rafael, grosbach, t.p.northover, llvm-commits

Differential Revision: http://reviews.llvm.org/D6185

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236455 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCObjectFileInfo.cpp
test/MC/ELF/empty.s