Make Triple's isOSBinFormatXXX functions partition triple-space.
authorTim Northover <tnorthover@apple.com>
Tue, 10 Dec 2013 16:57:43 +0000 (16:57 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 10 Dec 2013 16:57:43 +0000 (16:57 +0000)
commit7af55ad434f654128451106ed9f7813ea74c8616
tree071ea4ffbb2c29e0481a86e17cbfbf5b3a7c3bdf
parent8b71466c439dfd316906a6b1ef2ff7a30f4221ad
Make Triple's isOSBinFormatXXX functions partition triple-space.

Most users would be surprised if "isCOFF" and "isMachO" were simultaneously
true, unless they'd put the compiler in a box with a gun attached to a photon
detector.

This makes sure precisely one of the three formats is true for any triple and
simplifies some target logic based on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196934 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
lib/Target/X86/X86AsmPrinter.cpp
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Subtarget.h