[llvm-commits] [llvm] r86773 - /llvm/trunk/include/llvm/ADT/Triple.h

Daniel Dunbar daniel at zuster.org
Tue Nov 10 16:43:14 PST 2009


Author: ddunbar
Date: Tue Nov 10 18:43:14 2009
New Revision: 86773

URL: http://llvm.org/viewvc/llvm-project?rev=86773&view=rev
Log:
Add Triple::str() which returns the contents of the Triple as a string, as a more readable alternative to getTriple().

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=86773&r1=86772&r2=86773&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Tue Nov 10 18:43:14 2009
@@ -160,6 +160,8 @@
   /// @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





More information about the llvm-commits mailing list