[lld] r240721 - COFF: Rename /opt:icf -> /opt:lldicf.

Rui Ueyama ruiu at google.com
Thu Jun 25 16:26:58 PDT 2015


Author: ruiu
Date: Thu Jun 25 18:26:58 2015
New Revision: 240721

URL: http://llvm.org/viewvc/llvm-project?rev=240721&view=rev
Log:
COFF: Rename /opt:icf -> /opt:lldicf.

ICF implemented in LLD is so experimental that we don't want to
enable that even if /opt:icf option is passed. I'll rename it back
once the feature is complete.

Modified:
    lld/trunk/COFF/Driver.cpp
    lld/trunk/test/COFF/icf.test

Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=240721&r1=240720&r2=240721&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Thu Jun 25 18:26:58 2015
@@ -360,7 +360,7 @@ bool LinkerDriver::link(llvm::ArrayRef<c
       Config->DoGC = false;
       continue;
     }
-    if (S == "icf") {
+    if (S == "lldicf") {
       Config->ICF = true;
       continue;
     }

Modified: lld/trunk/test/COFF/icf.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/icf.test?rev=240721&r1=240720&r2=240721&view=diff
==============================================================================
--- lld/trunk/test/COFF/icf.test (original)
+++ lld/trunk/test/COFF/icf.test Thu Jun 25 18:26:58 2015
@@ -3,7 +3,7 @@
 # RUN: yaml2obj < %p/Inputs/icf3.yaml > %t3.obj
 #
 # RUN: lld -flavor link2 /out:%t.exe %t1.obj %t2.obj %t3.obj \
-# RUN:   /opt:icf /include:icf2 /include:icf3 /verbose >& %t.log
+# RUN:   /opt:lldicf /include:icf2 /include:icf3 /verbose >& %t.log
 # RUN: FileCheck %s < %t.log
 
 CHECK-NOT: Replaced mainCRTStartup





More information about the llvm-commits mailing list