r217522 - Recognize .lib files as linker input explicitly
Ehsan Akhgari
ehsan.akhgari at gmail.com
Wed Sep 10 10:15:00 PDT 2014
Author: ehsan
Date: Wed Sep 10 12:15:00 2014
New Revision: 217522
URL: http://llvm.org/viewvc/llvm-project?rev=217522&view=rev
Log:
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
Modified:
cfe/trunk/lib/Driver/Types.cpp
Modified: cfe/trunk/lib/Driver/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Types.cpp?rev=217522&r1=217521&r2=217522&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Types.cpp (original)
+++ cfe/trunk/lib/Driver/Types.cpp Wed Sep 10 12:15:00 2014
@@ -143,6 +143,7 @@ types::ID types::lookupTypeForExtension(
.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)
More information about the cfe-commits
mailing list