Rename option to -lto-pass-remarks-output
authorAdam Nemet <anemet@apple.com>
Tue, 22 Nov 2016 07:35:14 +0000 (07:35 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 22 Nov 2016 07:35:14 +0000 (07:35 +0000)
The new option -pass-remarks-output broke LLVM_LINK_LLVM_DYLIB because
of the duplicate option name with opt.

llvm-svn: 287627

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

index 2b31afc..784f316 100644 (file)
@@ -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"));
 }
index b861fa7..def3cd2 100644 (file)
@@ -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
index 9dc0e96..87b8a46 100644 (file)
@@ -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