From f799edef28f95d3cd20863fdf9825b421f6c6baf Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 25 Jun 2015 23:26:58 +0000 Subject: [PATCH] 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. llvm-svn: 240721 --- lld/COFF/Driver.cpp | 2 +- lld/test/COFF/icf.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index ba2c13d9adb8..1eb1a95c204c 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -360,7 +360,7 @@ bool LinkerDriver::link(llvm::ArrayRef ArgsArr) { Config->DoGC = false; continue; } - if (S == "icf") { + if (S == "lldicf") { Config->ICF = true; continue; } diff --git a/lld/test/COFF/icf.test b/lld/test/COFF/icf.test index 0812d928e05e..d5ea949df6ff 100644 --- a/lld/test/COFF/icf.test +++ b/lld/test/COFF/icf.test @@ -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