]> granicus.if.org Git - clang/commitdiff
Return the proper type for objects when given a .o extension.
authorChad Rosier <mcrosier@apple.com>
Fri, 12 Aug 2011 23:16:53 +0000 (23:16 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 12 Aug 2011 23:16:53 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Types.cpp

index 4a4312b77fc906fcc9aa520cc276b2716b1ef823..a6285ecd393cfc409e8a12c395230010cfaccdde 100644 (file)
@@ -144,6 +144,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) {
            .Case("F", TY_Fortran)
            .Case("s", TY_PP_Asm)
            .Case("S", TY_Asm)
+           .Case("o", TY_Object)
            .Case("ii", TY_PP_CXX)
            .Case("mi", TY_PP_ObjC)
            .Case("mm", TY_ObjCXX)