aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Option.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-12 03:42:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-12 03:42:54 +0000
commitb349fccc4a6e416483b0b36b4f74e39787c62344 (patch)
tree6d060e0040530530ba8e264a8c6d760757e7e1b8 /lib/Driver/Option.cpp
parentd639b42fb139b67abd878364df8707a30029e7b3 (diff)
Driver: Tweak option naming/def:
- Use OPT_ prefix for ids. - Reference groups and aliases by shortend id (on the theory that this is more readable). - Rename the special option ids to more protected names. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Option.cpp')
-rw-r--r--lib/Driver/Option.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Option.cpp b/lib/Driver/Option.cpp
index 7a74d34a86..7a53009455 100644
--- a/lib/Driver/Option.cpp
+++ b/lib/Driver/Option.cpp
@@ -113,7 +113,7 @@ Arg *OptionGroup::accept(const ArgList &Args, unsigned &Index) const {
}
InputOption::InputOption()
- : Option(Option::InputClass, options::InputOpt, "<input>", 0, 0) {
+ : Option(Option::InputClass, options::OPT_INPUT, "<input>", 0, 0) {
}
Arg *InputOption::accept(const ArgList &Args, unsigned &Index) const {
@@ -122,7 +122,7 @@ Arg *InputOption::accept(const ArgList &Args, unsigned &Index) const {
}
UnknownOption::UnknownOption()
- : Option(Option::UnknownClass, options::UnknownOpt, "<unknown>", 0, 0) {
+ : Option(Option::UnknownClass, options::OPT_UNKNOWN, "<unknown>", 0, 0) {
}
Arg *UnknownOption::accept(const ArgList &Args, unsigned &Index) const {