From de33651bd90eaa0ea37b1ee1b8ea5b89b8a75ba7 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Tue, 22 Nov 2016 07:35:14 +0000 Subject: [PATCH] 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. llvm-svn: 287627 --- llvm/lib/LTO/LTOCodeGenerator.cpp | 2 +- llvm/test/LTO/X86/diagnostic-handler-remarks.ll | 2 +- llvm/test/ThinLTO/X86/diagnostic-handler-remarks.ll | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index 2b31afc..784f316 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/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/llvm/test/LTO/X86/diagnostic-handler-remarks.ll b/llvm/test/LTO/X86/diagnostic-handler-remarks.ll index b861fa7..def3cd2 100644 --- a/llvm/test/LTO/X86/diagnostic-handler-remarks.ll +++ b/llvm/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/llvm/test/ThinLTO/X86/diagnostic-handler-remarks.ll b/llvm/test/ThinLTO/X86/diagnostic-handler-remarks.ll index 9dc0e96..87b8a46 100644 --- a/llvm/test/ThinLTO/X86/diagnostic-handler-remarks.ll +++ b/llvm/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 -- 2.7.4