]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
X86: convert object streamer selection to a switch
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Apr 2014 06:29:36 +0000 (06:29 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Apr 2014 06:29:36 +0000 (06:29 +0000)
commit64b54708667aef1ec4a0e19067f89876f7dde048
tree6157fbbcaeffc06adca7428605d5a3d86d8713c1
parent53258e6f9e6a884597200718358e9d500c9fc9d7
X86: convert object streamer selection to a switch

Change the object streamer selection to a switch from a series of if conditions.
Rather than defaulting to ELF, require that an ELF format is requested.  The
Windows/!ELF is maintained as MachO would have been selected first and will
still provide a MachO format.  Add an assertion that if COFF is requested that
the target platform is Windows as only WinCOFF object emission is currently
supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207200 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp