Ah, sure, when you retrieve a compile command you have the file in memory, but that doesn't prevent the caller from immediately deduping (or the ComiplationDatabase implementation from storing each file only once). http://llvm-reviews.chandlerc.com/D2121