Revert "Centralize the information about which object format we are using."
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Aug 2015 15:48:41 +0000 (15:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Aug 2015 15:48:41 +0000 (15:48 +0000)
commitea619d042f44c302c891240d4cd07018841cac20
treee7f2f764872a217948b417b439dfabfb86b1fa92
parent729c24b2e9ed2bed70a89ba839e9be9da8f7510c
Revert "Centralize the information about which object format we are using."

This reverts commit r245047.

It was failing on the darwin bots. The problem was that when running

./bin/llc -march=msp430

llc gets to

  if (TheTriple.getTriple().empty())
    TheTriple.setTriple(sys::getDefaultTargetTriple());

Which means that we go with an arch of msp430 but a triple of
x86_64-apple-darwin14.4.0 which fails badly.

That code has to be updated to select a triple based on the value of
march, but that is not a trivial fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245062 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectFileInfo.h
lib/MC/MCContext.cpp
lib/MC/MCObjectFileInfo.cpp
lib/MC/MCParser/AsmParser.cpp
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/CodeGen/X86/statepoint-stackmap-format.ll
test/MC/COFF/ARM/directive-type-diagnostics.s [new file with mode: 0644]