diff options
-rw-r--r-- | llvm/include/llvm/ADT/Triple.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index c89cf4dc2f3..5e35e8e0d8a 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/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 /// @{ |