Add Triple::str() which returns the contents of the Triple as a string, as a more readable alternative to getTriple().

llvm-svn: 86773
This commit is contained in:
Daniel Dunbar 2009-11-11 00:43:14 +00:00
parent 8b2d2d0707
commit 9169a37daf
1 changed files with 2 additions and 0 deletions

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