[llvm] r270726 - Add a new helper API in triple /NFC

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 10:11:31 PDT 2016


Author: davidxl
Date: Wed May 25 12:11:31 2016
New Revision: 270726

URL: http://llvm.org/viewvc/llvm-project?rev=270726&view=rev
Log:
Add a new helper API in triple /NFC

Modified:
    llvm/trunk/include/llvm/ADT/Triple.h

Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=270726&r1=270725&r2=270726&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed May 25 12:11:31 2016
@@ -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
   /// @{




More information about the llvm-commits mailing list