mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
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:
parent
de01cf1028
commit
fffed50461
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user