OSDN Git Service

Centralize the information about which object format we are using.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Aug 2015 13:31:17 +0000 (13:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Aug 2015 13:31:17 +0000 (13:31 +0000)
commitb0a171f7a0c2516543e88d57dd3a3ae891b7f47d
tree72972b631796c249d871346e6cdc2606acb536a5
parent26e173907984f54edc17cd5eece88450e7103e8e
Centralize the information about which object format we are using.

Other than some places that were handling unknown as ELF, this should
have no change. The test updates are because we were detecting
arm-coff or x86_64-win64-coff as ELF targets before.

It is not clear if the enum should live on the Triple. At least now it lives
in a single location and should be easier to move somewhere else.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245047 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 [deleted file]