From 3691393b86c6849525dcdfb096d9da816ac1545e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 11 Nov 2009 00:43:14 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/Triple.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0