aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-12 18:21:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-12 18:21:41 +0000
commit9f5ef9426fee383cb42b72cee1d6dc949c8c0189 (patch)
treec830d5d33ecd23e2aa85be3de56dbb84c41ac6bf /lib
parent1e2d081e8073934ddc1198b6556c2e2f51c99eec (diff)
Driver: Add types::canLipoType helper method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Driver/Types.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Driver/Types.cpp b/lib/Driver/Types.cpp
index a8eabeaaca..7affa2d93a 100644
--- a/lib/Driver/Types.cpp
+++ b/lib/Driver/Types.cpp
@@ -64,6 +64,12 @@ bool types::appendSuffixForType(ID Id) {
return strchr(getInfo(Id).Flags, 'A');
}
+bool types::canLipoType(ID Id) {
+ return (Id == TY_Nothing ||
+ Id == TY_Image ||
+ Id == TY_Object);
+}
+
types::ID types::lookupTypeForExtension(const char *Ext) {
unsigned N = strlen(Ext);