summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
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
commita228bdb6e28f72b1af49e99ba8ac2cf3fec44324 (patch)
tree91d6750f9c4abc87fc023801d1154d7494c82461 /clang/lib/Driver
parent3b7382da744446186ccf029ac2e8751d174281da (diff)
downloadbcm5719-llvm-a228bdb6e28f72b1af49e99ba8ac2cf3fec44324.tar.gz
bcm5719-llvm-a228bdb6e28f72b1af49e99ba8ac2cf3fec44324.zip
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 llvm-svn: 217522
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/Types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp
index 3538dbc2c0e..4a22dcff46a 100644
--- a/clang/lib/Driver/Types.cpp
+++ b/clang/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)
OpenPOWER on IntegriCloud