This is needed for http://reviews.llvm.org/D8507
I have no idea what stand-alone tests could be done, if needed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
A variadic "matches" method on Option would keep it from being
amazingly inefficient. (i.e. don't iterate through ArgList N times.)
Comment Actions
The real solution is to not have to walk the list for every method call like this. I.e. use a data structure that efficiently supports these sorts of queries.
Comment Actions
Well, sure. I just didn't want Michael's comment to prompt an inductive template on getLastArg, which would be worse.