[PATCH] [C++11] Change DebugInfoFinder to use range-based loops

Alon Mishne alonmishne at gmail.com
Sun Mar 16 02:20:49 PDT 2014

This patch changes DebugInfoFinder iterator functions to be
range-based-loops-friendly. To make it even easier to users the iterators
now also actually return the DI type, not just the MDNode - all but one
user (in DebugIR) benefit from this.

Notice that this means there are now 5 iterator typedefs instead of just
one; but in the rare case they need to be referred to, such as in
Cloning.cpp, "auto" can just be used. Also, once all supported compilers
implement alias template, all 5 typedefs could be generalized into one.

- Alon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140316/e364364b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debuginfofinder-c11-iterators.patch
Type: application/octet-stream
Size: 11686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140316/e364364b/attachment.obj>

More information about the llvm-commits mailing list