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 <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mehdi Amini 2016-03-10 17:06:52 +00:00
parent de01cf1028
commit fffed50461

View File

@ -67,8 +67,8 @@ const char* LTOCodeGenerator::getVersionString() {
namespace llvm {
cl::opt<bool> 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