diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-10 17:06:52 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-10 17:06:52 +0000 |
| commit | 1592cb9aa18fde2e186d5bf692b0219ef6d74572 (patch) | |
| tree | d9216b9ce69f821bfd5bad16a245715e492b3ec4 /llvm/lib | |
| parent | a1496f7c37318bece5b74628f4755bdab123ce8c (diff) | |
| download | bcm5719-llvm-1592cb9aa18fde2e186d5bf692b0219ef6d74572.tar.gz bcm5719-llvm-1592cb9aa18fde2e186d5bf692b0219ef6d74572.zip | |
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>
llvm-svn: 263127
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index a85cf407e6a..a07edefe4c0 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -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 |

