From: Daniel Dunbar Date: Wed, 11 Nov 2009 00:43:14 +0000 (+0000) Subject: Add Triple::str() which returns the contents of the Triple as a string, as a more... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3691393b86c6849525dcdfb096d9da816ac1545e;p=oota-llvm.git Add Triple::str() which returns the contents of the Triple as a string, as a more readable alternative to getTriple(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86773 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 1b2a323b4e8..bf4dfee7147 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -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