diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-07-22 16:18:13 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-07-22 16:18:13 +0000 |
commit | 31d6fd84e671d41e4e042da5eb04886e3d801fb8 (patch) | |
tree | 6ca9cb0d3cf5ad7266a05ec9fa922192cd27e03f /llvm/lib/Option/Option.cpp | |
parent | 540338259d02b24867d7a67686c7f07efd200d9e (diff) | |
download | bcm5719-llvm-31d6fd84e671d41e4e042da5eb04886e3d801fb8.tar.gz bcm5719-llvm-31d6fd84e671d41e4e042da5eb04886e3d801fb8.zip |
Option parsing: allow aliases in groups
Option aliases in option groups were previously disallowed by an assert.
As far as I can tell, there was no technical reason for this, and I would
like to be able to put cl.exe compatible options in their own group for Clang,
so let's change the assert.
llvm-svn: 186838
Diffstat (limited to 'llvm/lib/Option/Option.cpp')
-rw-r--r-- | llvm/lib/Option/Option.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Option/Option.cpp b/llvm/lib/Option/Option.cpp index f1b7941e498..bed779ad554 100644 --- a/llvm/lib/Option/Option.cpp +++ b/llvm/lib/Option/Option.cpp @@ -22,12 +22,10 @@ using namespace llvm::opt; Option::Option(const OptTable::Info *info, const OptTable *owner) : Info(info), Owner(owner) { - // Multi-level aliases are not supported, and alias options cannot - // have groups. This just simplifies option tracking, it is not an - // inherent limitation. - assert((!Info || !getAlias().isValid() || (!getAlias().getAlias().isValid() && - !getGroup().isValid())) && - "Multi-level aliases and aliases with groups are unsupported."); + // Multi-level aliases are not supported. This just simplifies option + // tracking, it is not an inherent limitation. + assert(!Info || !getAlias().isValid() || !getAlias().getAlias().isValid() && + "Multi-level aliases are not supported."); } Option::~Option() { |