[PATCH] D33493: Speed up preamble loading

Ivan Donchevskii via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 12:47:17 PDT 2017


yvvan added a comment.

In https://reviews.llvm.org/D33493#774264, @arphaman wrote:

> Can you use a local map in `TranslateStoredDiagnostics` instead of storing one in the `ASTUnit`, or do you need to keep it around?


The whole purpose is to use it between different TranslateStoredDiagnostics calls because it scans the same files every time. And this cache allows it to reuse the source location.


https://reviews.llvm.org/D33493





More information about the cfe-commits mailing list