diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-04-18 19:49:24 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-04-18 19:49:24 +0000 |
| commit | 28da676709fe18d3eb33ac0b7e0b5189f05da358 (patch) | |
| tree | bb4c479031a4863750d3faf02c75d44763358fee | |
| parent | 147644d400c5fb4469335b0e29070d741cee6c71 (diff) | |
| download | bcm5719-llvm-28da676709fe18d3eb33ac0b7e0b5189f05da358.tar.gz bcm5719-llvm-28da676709fe18d3eb33ac0b7e0b5189f05da358.zip | |
[PECOFF] Ignore /ignore option.
/ignore:<number> is a linker option to disable warning specified by
the number. We ignore the option because it does not make sense for
LLD.
llvm-svn: 206636
| -rw-r--r-- | lld/lib/Driver/WinLinkOptions.td | 1 | ||||
| -rw-r--r-- | lld/unittests/DriverTests/WinLinkDriverTest.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lld/lib/Driver/WinLinkOptions.td b/lld/lib/Driver/WinLinkOptions.td index b40dd6e081f..b7cd4308652 100644 --- a/lld/lib/Driver/WinLinkOptions.td +++ b/lld/lib/Driver/WinLinkOptions.td @@ -106,6 +106,7 @@ def delay : QF<"delay">; def delayload : QF<"delayload">; def errorreport : QF<"errorreport">; def idlout : QF<"idlout">; +def ignore : QF<"ignore">; def implib : QF<"implib">; def pdb : QF<"pdb">; def pdbaltpath : QF<"pdbaltpath">; diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index 1c1bc79a2b2..c5a0e1470eb 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -653,8 +653,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", "/implib:foo", "/safeseh", "/safeseh:no", - "/functionpadmin", "a.obj", nullptr)); + "/ignore:4000", "/ignoreidl", "/implib:foo", "/safeseh", + "/safeseh:no", "/functionpadmin", "a.obj", nullptr)); EXPECT_EQ("", errorMessage()); EXPECT_EQ(2, inputFileCount()); EXPECT_EQ("a.obj", inputFile(0)); |

