From fffed504618bfa727c91a23f24467350b5b91028 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 10 Mar 2016 17:06:52 +0000 Subject: [PATCH] Rename -discard-value-names into -lto-discard-value-names in libLLVMLTO This is avoiding a naming conflict with opt and llc. While opt and llc don't link to LTO usually, users that are building a monolithic libLLVM.dylib and linking the tools to it would have a runtime error because of the duplicate cl::opt registration. From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263127 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/LTO/LTOCodeGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index a85cf407e6a..a07edefe4c0 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -67,8 +67,8 @@ const char* LTOCodeGenerator::getVersionString() { namespace llvm { cl::opt LTODiscardValueNames( - "discard-value-names", - cl::desc("Strip names from Value (other than GlobalValue)."), + "lto-discard-value-names", + cl::desc("Strip names from Value during LTO (other than GlobalValue)."), #ifdef NDEBUG cl::init(true), #else