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)
commitd71a17710beaa2c95aeaf51f264c7436a69a4b35
tree958c15303ccc3d51a85f3cdba22657faafa28c4a
parentd6e8c0d4361faa507cdf70028040a018a6c500fa
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

llvm-svn: 236455
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/MC/ELF/empty.s