Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comments from the peanut gallery...
lib/Driver/Tools.cpp | ||
---|---|---|
9482–9488 ↗ | (On Diff #30865) | How worried are you about eventual incompatibilities between the flags in these groups for the driver and for the underlying SHAVE compiler? I'm moderately worried... How many flags are we talking about here? Also, the -W flags worry me less than the rest. Finally, why two AddAllArgs? |
lib/Driver/Tools.cpp | ||
---|---|---|
9482–9488 ↗ | (On Diff #30865) |
Well, what bad would happen? The thing I'd expect is to have an arg that's been removed from the driver but is still supported by the underlying compiler, or, is not yet present in the underlying compiler but is supported in the driver. Neither of those seem terribly problematic -- you'll get an error from one layer or the other, which is basically the correct thing to have happen. I think the only actual bad case is if a given flag changes between having a separate value to not, or vice versa, and that seems unlikely enough to come up that it can be ignored as a problem.
Because AddAllArgs can take 3 args, and only 3 args, and that's true all the way down through "class arg_iterator", which has 3 members, "OptSpecifier Id0, Id1, Id2", rather than, say, a SmallVector<OptSpecifier, 3> Ids. Yuk. |