This is a less clever version of https://reviews.llvm.org/D48433.
This is a dumb version but I think I prefer this for its simplicity.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Well, if you're OK with such straightforward approach, I have no objections either. Its indeed simplest way probably. LGTM.
Comment Actions
The problem of doing an error check this way is, when it is easy to make the list inconsistent you remove an -z option support. However, that's not a real concern because we can't remove any -z option once it is implemented and released. So this simple way should suffice.
Comment Actions
Yeah, speaking honestly my approach felt a bit tricky to me. But I was not sure that dumb way (which is first that comes to mind) is acceptable either. I think I am happy with it.