[llvm] r287627 - Rename option to -lto-pass-remarks-output

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 23:35:14 PST 2016


Author: anemet
Date: Tue Nov 22 01:35:14 2016
New Revision: 287627

URL: http://llvm.org/viewvc/llvm-project?rev=287627&view=rev
Log:
Rename option to -lto-pass-remarks-output

The new option -pass-remarks-output broke LLVM_LINK_LLVM_DYLIB because
of the duplicate option name with opt.

Modified:
    llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
    llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
    llvm/trunk/test/ThinLTO/X86/diagnostic-handler-remarks.ll

Modified: llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOCodeGenerator.cpp?rev=287627&r1=287626&r2=287627&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/lib/LTO/LTOCodeGenerator.cpp Tue Nov 22 01:35:14 2016
@@ -93,7 +93,7 @@ cl::opt<bool> LTOStripInvalidDebugInfo(
     cl::Hidden);
 
 cl::opt<std::string>
-    LTORemarksFilename("pass-remarks-output",
+    LTORemarksFilename("lto-pass-remarks-output",
                        cl::desc("Output filename for pass remarks"),
                        cl::value_desc("filename"));
 }

Modified: llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll?rev=287627&r1=287626&r2=287627&view=diff
==============================================================================
--- llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll (original)
+++ llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll Tue Nov 22 01:35:14 2016
@@ -28,7 +28,7 @@
 ; RUN: llvm-nm %t.o | FileCheck %s -check-prefix NM
 
 ; Optimization records are collected regardless of the diagnostic handler
-; RUN: llvm-lto -pass-remarks-output=%t.yaml \
+; RUN: llvm-lto -lto-pass-remarks-output=%t.yaml \
 ; RUN:          -exported-symbol _func2 \
 ; RUN:          -exported-symbol _main -o %t.o %t.bc 2>&1 | \
 ; RUN:     FileCheck %s -allow-empty

Modified: llvm/trunk/test/ThinLTO/X86/diagnostic-handler-remarks.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/diagnostic-handler-remarks.ll?rev=287627&r1=287626&r2=287627&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/diagnostic-handler-remarks.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/diagnostic-handler-remarks.ll Tue Nov 22 01:35:14 2016
@@ -3,7 +3,7 @@
 
 ; Optimization records are collected regardless of the diagnostic handler
 ; RUN: llvm-lto -thinlto-action=run \
-; RUN:          -pass-remarks-output=%t.yaml \
+; RUN:          -lto-pass-remarks-output=%t.yaml \
 ; RUN:          -exported-symbol _func2 \
 ; RUN:          -exported-symbol _main %t1.bc %t2.bc 2>&1 | \
 ; RUN:     FileCheck %s -allow-empty




More information about the llvm-commits mailing list