Add Triple::str() which returns the contents of the Triple as a string, as a more...
authorDaniel Dunbar <daniel@zuster.org>
Wed, 11 Nov 2009 00:43:14 +0000 (00:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 11 Nov 2009 00:43:14 +0000 (00:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86773 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h

index 1b2a323b4e8c9ac56db208abe3d48d830a242c90..bf4dfee71473b8b9251e34ac25f9cf3add65b718 100644 (file)
@@ -160,6 +160,8 @@ public:
   /// @name Direct Component Access
   /// @{
 
+  const std::string &str() const { return Data; }
+
   const std::string &getTriple() const { return Data; }
 
   /// getArchName - Get the architecture (first) component of the