From: Adam Nemet Date: Tue, 22 Nov 2016 07:35:14 +0000 (+0000) Subject: Rename option to -lto-pass-remarks-output X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4208630cb71c79d009782d1b118d5410b7a8c468;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287627 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index 2b31afcc114..784f316582c 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -93,7 +93,7 @@ cl::opt LTOStripInvalidDebugInfo( cl::Hidden); cl::opt - LTORemarksFilename("pass-remarks-output", + LTORemarksFilename("lto-pass-remarks-output", cl::desc("Output filename for pass remarks"), cl::value_desc("filename")); } diff --git a/test/LTO/X86/diagnostic-handler-remarks.ll b/test/LTO/X86/diagnostic-handler-remarks.ll index b861fa79134..def3cd223e8 100644 --- a/test/LTO/X86/diagnostic-handler-remarks.ll +++ b/test/LTO/X86/diagnostic-handler-remarks.ll @@ -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 diff --git a/test/ThinLTO/X86/diagnostic-handler-remarks.ll b/test/ThinLTO/X86/diagnostic-handler-remarks.ll index 9dc0e9691c0..87b8a4601bd 100644 --- a/test/ThinLTO/X86/diagnostic-handler-remarks.ll +++ b/test/ThinLTO/X86/diagnostic-handler-remarks.ll @@ -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