[lld] r195276 - [PECOFF] Recognize but ignore /implib and /safeseh for now.
Rui Ueyama
ruiu at google.com
Wed Nov 20 13:57:30 PST 2013
Author: ruiu
Date: Wed Nov 20 15:57:30 2013
New Revision: 195276
URL: http://llvm.org/viewvc/llvm-project?rev=195276&view=rev
Log:
[PECOFF] Recognize but ignore /implib and /safeseh for now.
So that the LLD won't print error message saying that it couldn't find
/implib or /safeseh files.
Modified:
lld/trunk/lib/Driver/WinLinkOptions.td
lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
Modified: lld/trunk/lib/Driver/WinLinkOptions.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkOptions.td?rev=195276&r1=195275&r2=195276&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkOptions.td (original)
+++ lld/trunk/lib/Driver/WinLinkOptions.td Wed Nov 20 15:57:30 2013
@@ -98,6 +98,7 @@ def delay : QF<"delay">;
def delayload : QF<"delayload">;
def errorreport : QF<"errorreport">;
def idlout : QF<"idlout">;
+def implib : QF<"implib">;
def pdb : QF<"pdb">;
def pdbaltpath : QF<"pdbaltpath">;
def tlbid : QF<"tlbid">;
@@ -105,3 +106,4 @@ def tlbout : QF<"tlbout">;
def verbose_all : QF<"verbose">;
defm wx : QB<"wx">;
+defm safeseh : QB<"safeseh">;
Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=195276&r1=195275&r2=195276&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Wed Nov 20 15:57:30 2013
@@ -515,7 +515,8 @@ TEST_F(WinLinkParserTest, Ignore) {
"/disallowlib:foo", "/delayload:user32", "/pdb:foo",
"/pdbaltpath:bar", "/verbose", "/verbose:icf", "/wx",
"/wx:no", "/tlbid:1", "/tlbout:foo", "/idlout:foo",
- "/ignoreidl", "a.obj", nullptr));
+ "/ignoreidl", "/implib:foo", "/safeseh", "/safeseh:no",
+ "a.obj", nullptr));
EXPECT_EQ("", errorMessage());
EXPECT_EQ(1, inputFileCount());
EXPECT_EQ("a.obj", inputFile(0));
More information about the llvm-commits
mailing list