[cfe-commits] [PATCH] Optimize SourceManager::getColumnNumber to fix PR14106

Craig Topper craig.topper at gmail.com
Wed Oct 17 18:04:06 PDT 2012

This patch uses the line number cache to find the start of the line instead
of searching backwards for it. This helps performance in cases where the
line is long and have just called getLineNumber for the same position.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121017/01967670/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getColumnNumber.patch
Type: application/octet-stream
Size: 881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121017/01967670/attachment.obj>

More information about the cfe-commits mailing list