[cfe-commits] r159997 - in /cfe/trunk: include/clang/Basic/FileManager.h lib/Basic/FileManager.cpp
Axel Naumann
Axel.Naumann at cern.ch
Wed Jul 11 02:43:16 PDT 2012
Hi Richard,
On 07/10/2012 10:44 PM, Richard Smith wrote:
> On Tue, Jul 10, 2012 at 9:50 AM, Axel Naumann <Axel.Naumann at cern.ch
> <mailto:Axel.Naumann at cern.ch>> wrote:
>
> Author: axel
> Date: Tue Jul 10 11:50:27 2012
> New Revision: 159997
>
> URL: http://llvm.org/viewvc/llvm-project?rev=159997&view=rev
> Log:
> Improve r159256 following Chandler's comments:
> Implement UniqueFileContainer::erase(), camelCase, add comment on
> future optimizations of the cache versus de-optimizations of
> invalidations.
>
> [...]
>
> @@ -112,7 +112,7 @@
>
> size_t size() const { return UniqueFiles.size(); }
>
> - friend class FileManager;
> + void erase(const FileEntry *Entry) {
> UniqueFiles.erase(Entry->getName()); }
>
>
> (In the LLVM_ON_WIN32 case...) This is wrong. The key in the UniqueFiles
> map isn't Entry->getName(); see UniqueFileContainer::getFile.
Thanks, done!
Cheers, Axel.
More information about the cfe-commits
mailing list