<div class="gmail_quote">On Tue, Jul 10, 2012 at 9:50 AM, Axel Naumann <span dir="ltr"><<a href="mailto:Axel.Naumann@cern.ch" target="_blank">Axel.Naumann@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: axel<br>
Date: Tue Jul 10 11:50:27 2012<br>
New Revision: 159997<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=159997&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=159997&view=rev</a><br>
Log:<br>
Improve r159256 following Chandler's comments:<br>
Implement UniqueFileContainer::erase(), camelCase, add comment on future optimizations of the cache versus de-optimizations of invalidations.<br></blockquote><div>[...] </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -112,7 +112,7 @@<br>
<br>
   size_t size() const { return UniqueFiles.size(); }<br>
<br>
-  friend class FileManager;<br>
+  void erase(const FileEntry *Entry) { UniqueFiles.erase(Entry->getName()); }<br></blockquote><div><br></div><div>(In the LLVM_ON_WIN32 case...) This is wrong. The key in the UniqueFiles map isn't Entry->getName(); see UniqueFileContainer::getFile.</div>
</div>