Add a new helper API in triple /NFC

llvm-svn: 270726
This commit is contained in:
Xinliang David Li 2016-05-25 17:11:31 +00:00
parent e8e7555b10
commit d509fcf4f4
1 changed files with 3 additions and 0 deletions

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
/// @{