[CommandLine] Don't allow unlimitted dashes for options. Part 1 or 5
authorDon Hinton <hintonda@gmail.com>
Mon, 29 Apr 2019 18:34:18 +0000 (18:34 +0000)
committerDon Hinton <hintonda@gmail.com>
Mon, 29 Apr 2019 18:34:18 +0000 (18:34 +0000)
commit89e583b843b5d2cefee8a486caa4849f3d742e82
tree8b4fa90400afbe03559c2e3552f3ab63e6868815
parent0a5c2b244930984f6ad920d901dcc362032a7e85
[CommandLine] Don't allow unlimitted dashes for options. Part 1 or 5

Summary:
Prior to this patch, the CommandLine parser would strip an
unlimitted number of dashes from options.  This patch limits it to
two.

Reviewers: rnk

Reviewed By: rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61229

llvm-svn: 359480
llvm/lib/Support/CommandLine.cpp
llvm/test/DebugInfo/X86/array.ll
llvm/test/DebugInfo/dwarfdump-64-bit-dwarf.test