summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/Triple.h
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-05-09 17:23:48 +0000
committerChad Rosier <mcrosier@apple.com>2012-05-09 17:23:48 +0000
commitecee47eab409f6a6fada7ace3d9bee0a0146ac3f (patch)
treeeecaf69bbb23589be8f5ee4e55f783196439191c /include/llvm/ADT/Triple.h
parent5c87b4958d1a5dabf2400be5b3a86aed4f82db91 (diff)
downloadllvm-ecee47eab409f6a6fada7ace3d9bee0a0146ac3f.tar.gz
llvm-ecee47eab409f6a6fada7ace3d9bee0a0146ac3f.tar.bz2
llvm-ecee47eab409f6a6fada7ace3d9bee0a0146ac3f.tar.xz
Add Triple::getiOSVersion.
This new function provides a way to get the iOS version number from ios triples. Part of rdar://11409204 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Triple.h')
-rw-r--r--include/llvm/ADT/Triple.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h
index edbbdc51f6..957c581976 100644
--- a/include/llvm/ADT/Triple.h
+++ b/include/llvm/ADT/Triple.h
@@ -196,6 +196,11 @@ public:
bool getMacOSXVersion(unsigned &Major, unsigned &Minor,
unsigned &Micro) const;
+ /// getiOSVersion - Parse the version number as with getOSVersion. This should
+ /// only be called with IOS triples.
+ void getiOSVersion(unsigned &Major, unsigned &Minor,
+ unsigned &Micro) const;
+
/// @}
/// @name Direct Component Access
/// @{