[PATCH] D34985: Do not read the file to determine its name.

Axel Naumann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 5 02:34:33 PDT 2017


karies added a comment.

To be clear: emitting annotations will trigger the determination of `PresumedLoc`s.  As part of that (but not the first part, IIRC) `SourceManager::getBufferName(()` will be called which will trigger the `fopen` of the file, just to get its name. Another task of `PresumedLoc` is to determine the line number which triggers an `fopen`; @v.g.vassilev is looking into a possible solution for that one.


Repository:
  rL LLVM

https://reviews.llvm.org/D34985





More information about the cfe-commits mailing list