[lld] r191063 - [PECOFF] Ignore /incremental option.

Rui Ueyama ruiu at google.com
Thu Sep 19 17:55:37 PDT 2013


Author: ruiu
Date: Thu Sep 19 19:55:37 2013
New Revision: 191063

URL: http://llvm.org/viewvc/llvm-project?rev=191063&view=rev
Log:
[PECOFF] Ignore /incremental option.

/incremental is an option to enable incremental linking. We will eventually
want to implement the feature for better performance, but in the meantime,
we want to just ignore the option so that the linker does not output unknown
option error when it sees /incremental 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=191063&r1=191062&r2=191063&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkOptions.td (original)
+++ lld/trunk/lib/Driver/WinLinkOptions.td Thu Sep 19 19:55:37 2013
@@ -68,3 +68,5 @@ multiclass Q<string name> {
 }
 def nologo : F<"nologo">;
 defm errorreport : Q<"errorreport">;
+def incremental : F<"incremental">;
+def no_incremental : F<"incremental:no">;

Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=191063&r1=191062&r2=191063&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Thu Sep 19 19:55:37 2013
@@ -259,8 +259,8 @@ TEST_F(WinLinkParserTest, FailIfMismatch
 TEST_F(WinLinkParserTest, Ignore) {
   // There are some no-op command line options that are recognized for
   // compatibility with link.exe.
-  EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt", "a.obj",
-                     nullptr));
+  EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt",
+                     "/incremental", "/incremental: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