diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2014-09-10 17:15:00 +0000 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2014-09-10 17:15:00 +0000 |
commit | 105e611215cc0b231ec6e623839f45c33b4654d7 (patch) | |
tree | 6fe975ae83343d788e6de1adb64077d9f4b78121 /lib/Driver/Types.cpp | |
parent | bdea08b2287fd48a654c5c7cd4f0b5efa74e0cd2 (diff) | |
download | clang-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.cpp | 1 |
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) |