Add a new helper API in triple /NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Xinliang David Li 2016-05-25 17:11:31 +00:00
parent 4877ca745f
commit c36e61dacd

View File

@ -569,6 +569,9 @@ public:
return getArch() == Triple::nvptx || getArch() == Triple::nvptx64;
}
/// Tests wether the target supports comdat
bool supportsCOMDAT() const { return !isOSBinFormatMachO(); }
/// @}
/// @name Mutators
/// @{