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
This commit is contained in:
Daniel Dunbar 2009-11-11 00:43:14 +00:00
parent 39ae3ff6d1
commit 3691393b86

View 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