COFF: Rename /opt:icf -> /opt:lldicf.
authorRui Ueyama <ruiu@google.com>
Thu, 25 Jun 2015 23:26:58 +0000 (23:26 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 25 Jun 2015 23:26:58 +0000 (23:26 +0000)
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.

llvm-svn: 240721

lld/COFF/Driver.cpp
lld/test/COFF/icf.test

index ba2c13d..1eb1a95 100644 (file)
@@ -360,7 +360,7 @@ bool LinkerDriver::link(llvm::ArrayRef<const char *> ArgsArr) {
       Config->DoGC = false;
       continue;
     }
-    if (S == "icf") {
+    if (S == "lldicf") {
       Config->ICF = true;
       continue;
     }
index 0812d92..d5ea949 100644 (file)
@@ -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