aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2015-05-04 20:03:01 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2015-05-04 20:03:01 +0000
commitd71a17710beaa2c95aeaf51f264c7436a69a4b35 (patch)
tree958c15303ccc3d51a85f3cdba22657faafa28c4a /llvm/lib/MC/MCObjectFileInfo.cpp
parentd6e8c0d4361faa507cdf70028040a018a6c500fa (diff)
downloadllvm-d71a17710beaa2c95aeaf51f264c7436a69a4b35.zip
llvm-d71a17710beaa2c95aeaf51f264c7436a69a4b35.tar.gz
llvm-d71a17710beaa2c95aeaf51f264c7436a69a4b35.tar.bz2
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
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 02fc55e..29f5a1d 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -754,7 +754,7 @@ void MCObjectFileInfo::InitMCObjectFileInfo(StringRef T, Reloc::Model relocm,
Arch == Triple::aarch64 ||
Arch == Triple::ppc || Arch == Triple::ppc64 ||
Arch == Triple::UnknownArch) &&
- (TT.isOSDarwin() || TT.isOSBinFormatMachO())) {
+ TT.isOSBinFormatMachO()) {
Env = IsMachO;
InitMachOMCObjectFileInfo(TT);
} else if ((Arch == Triple::x86 || Arch == Triple::x86_64 ||