[lld] r187162 - [PECOFF][Driver] Add /nologo command line option.
Rui Ueyama
ruiu at google.com
Thu Jul 25 15:46:49 PDT 2013
Author: ruiu
Date: Thu Jul 25 17:46:49 2013
New Revision: 187162
URL: http://llvm.org/viewvc/llvm-project?rev=187162&view=rev
Log:
[PECOFF][Driver] Add /nologo command line option.
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=187162&r1=187161&r2=187162&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkOptions.td (original)
+++ lld/trunk/lib/Driver/WinLinkOptions.td Thu Jul 25 17:46:49 2013
@@ -63,5 +63,8 @@ def incl_c : _Joined<"include:", incl>;
def failifmismatch : _Separate<"failifmismatch">;
def failifmismatch_c : _Joined<"failifmismatch:", failifmismatch>;
+// NOLOGO does nothing. It is defined only for link.exe compatibility.
+def nologo : _Flag<"nologo">;
+
def help : _Flag<"help">;
def help_q : _Flag<"?">, Alias<help>;
Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=187162&r1=187161&r2=187162&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Thu Jul 25 17:46:49 2013
@@ -198,4 +198,12 @@ TEST_F(WinLinkParserTest, FailIfMismatch
"/failifmismatch:foo=baz", "a.out", nullptr));
}
+TEST_F(WinLinkParserTest, Nologo) {
+ // NOLOGO flag is for link.exe compatibility. It's recognized but is ignored.
+ EXPECT_FALSE(parse("link.exe", "/nologo", "a.obj", nullptr));
+ EXPECT_EQ("", errorMessage());
+ EXPECT_EQ(1, inputFileCount());
+ EXPECT_EQ("a.obj", inputFile(0));
+}
+
} // end anonymous namespace
More information about the llvm-commits
mailing list