summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r--clang/lib/Driver/OptTable.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp
index 731334848ae..335d7720bfa 100644
--- a/clang/lib/Driver/OptTable.cpp
+++ b/clang/lib/Driver/OptTable.cpp
@@ -95,21 +95,14 @@ Option *OptTable::constructOption(options::ID id) const {
Opt = new JoinedAndSeparateOption(info.Name, Group, Alias); break;
}
- // FIXME: Set flags.
for (const char *s = info.Flags; *s; ++s) {
switch (*s) {
- default:
- assert(0 && "Invalid option flag.");
- case 'l':
- break;
- case 'i':
- break;
- case 'J':
- break;
- case 'S':
- break;
- case 'U':
- break;
+ default: assert(0 && "Invalid option flag.");
+ case 'l': Opt->setLinkerInput(true); break;
+ case 'i': Opt->setNoOptAsInput(true); break;
+ case 'J': Opt->setForceJoinedRender(true); break;
+ case 'S': Opt->setForceSeparateRender(true); break;
+ case 'U': Opt->setUnsupported(true); break;
}
}
OpenPOWER on IntegriCloud