summaryrefslogtreecommitdiff
path: root/lib/Driver/Types.cpp
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2014-09-10 17:15:00 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2014-09-10 17:15:00 +0000
commit105e611215cc0b231ec6e623839f45c33b4654d7 (patch)
tree6fe975ae83343d788e6de1adb64077d9f4b78121 /lib/Driver/Types.cpp
parentbdea08b2287fd48a654c5c7cd4f0b5efa74e0cd2 (diff)
downloadclang-105e611215cc0b231ec6e623839f45c33b4654d7.tar.gz
Recognize .lib files as linker input explicitly
Summary: Currently, this is done implicitly in Driver::BuildInputs by considering any invalid input type as linker input. Test Plan: I don't think this behavior is observable for the reason stated above. Reviewers: hansw Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5294 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Types.cpp')
-rw-r--r--lib/Driver/Types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/Types.cpp b/lib/Driver/Types.cpp
index 3538dbc2c0..4a22dcff46 100644
--- a/lib/Driver/Types.cpp
+++ b/lib/Driver/Types.cpp
@@ -143,6 +143,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) {
.Case("S", TY_Asm)
.Case("o", TY_Object)
.Case("obj", TY_Object)
+ .Case("lib", TY_Object)
.Case("ii", TY_PP_CXX)
.Case("mi", TY_PP_ObjC)
.Case("mm", TY_ObjCXX)