summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/Types.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp
index a8eabeaacab..7affa2d93a6 100644
--- a/clang/lib/Driver/Types.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud