diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 00:43:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 00:43:14 +0000 |
commit | 3691393b86c6849525dcdfb096d9da816ac1545e (patch) | |
tree | 72d6ef880eb7615d19fbb3ca7515ecc076c50706 /include/llvm/ADT/Triple.h | |
parent | 39ae3ff6d13ef71d0f0ecc8499b49935355508af (diff) | |
download | external_llvm-3691393b86c6849525dcdfb096d9da816ac1545e.zip external_llvm-3691393b86c6849525dcdfb096d9da816ac1545e.tar.gz external_llvm-3691393b86c6849525dcdfb096d9da816ac1545e.tar.bz2 |
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
Diffstat (limited to 'include/llvm/ADT/Triple.h')
-rw-r--r-- | include/llvm/ADT/Triple.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 1b2a323..bf4dfee 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 |