OSDN Git Service

CommandLine: bail out when options get multiply registered
authorAlp Toker <alp@nuanti.com>
Thu, 19 Jun 2014 07:25:25 +0000 (07:25 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 19 Jun 2014 07:25:25 +0000 (07:25 +0000)
commitc28beb254dabd5f522bafdbdd59a4e22f0a539ec
treebf80b0f2aae802b9706a03a337792808ff311705
parentba928e254e78a06b9e4743dd933df3103c80ed92
CommandLine: bail out when options get multiply registered

These errors are strictly unrecoverable and indicate serious issues such as
conflicting option names or an incorrectly linked LLVM distribution.

With this change, the errors actually get detected so tests don't pass
silently.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211260 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp