From c36e61dacdc14aa9e12afd5ed12413bafe2ae35e Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Wed, 25 May 2016 17:11:31 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/Triple.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index c89cf4dc2f3..5e35e8e0d8a 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -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 /// @{ -- 2.11.0