1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Justin Bogner aaa0b69577 Support: Fix option handling when using cl::Required with aliasopt
Until now, attempting to create an alias of a required option would
complain if the user supplied the alias, because the required option
didn't have a value. Similarly, if you said the alias was required,
then using the base option would complain that the alias wasn't
supplied. Lastly, if you put required on both, *neither* option would
work.

By changning alias to overload addOccurrence and setting cl::Required
on the original option, we can get this to behave in a more useful
way. I've also added a test and updated a user that was getting this
wrong.

llvm-svn: 212986
2014-07-14 20:53:57 +00:00
..
2014-06-08 22:29:17 +00:00
2014-06-08 22:29:17 +00:00
2013-08-01 18:42:28 +00:00
2014-02-04 22:53:45 +00:00
2014-06-08 22:29:17 +00:00
2014-06-08 22:29:17 +00:00
2014-06-08 22:29:17 +00:00
2014-06-08 22:29:17 +00:00
2014-06-08 22:29:17 +00:00