Home | History | Annotate | Download | only in Option

Lines Matching defs:Option

1 //===--- Option.cpp - Abstract Driver Options -----------------------------===//
10 #include "llvm/Option/Option.h"
12 #include "llvm/Option/Arg.h"
13 #include "llvm/Option/ArgList.h"
22 Option::Option(const OptTable::Info *info, const OptTable *owner)
25 // Multi-level aliases are not supported. This just simplifies option
34 "Cannot provide alias args to a flag option.");
38 Option::~Option() {
41 void Option::dump() const {
68 const Option Group = getGroup();
74 const Option Alias = getAlias();
86 bool Option::matches(OptSpecifier Opt) const {
88 const Option Alias = getAlias();
96 const Option Group = getGroup();
102 Arg *Option::accept(const ArgList &Args,
105 const Option &UnaliasedOption = getUnaliasedOption();
107 // If the option was an alias, get the spelling from the unaliased one.
218 llvm_unreachable("Invalid option kind!");