[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.

llvm-svn: 195276
This commit is contained in:
Rui Ueyama 2013-11-20 21:57:30 +00:00
parent 07e2764ce7
commit f8b41867c8
2 changed files with 4 additions and 1 deletions

View File

@ -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">;

View File

@ -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));