diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-05-05 21:21:39 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-05-05 21:21:39 +0000 |
| commit | 6197f101bd0d753866f39268fb1f63e03eadce6f (patch) | |
| tree | b122de80096b411aef28262c0d4762b257464ad1 /lib/Basic/FileManager.cpp | |
| parent | 192d781cd5d580756692f997bc5592f8a5962f7c (diff) | |
| download | clang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.gz clang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.bz2 clang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.xz | |
Simplify replacement map by avoiding duplicate values and ensuring the values it does contain are necessary.
Items were being redundantly added to the replacement map (both when the
declaration was created, and then again when its definition was
constructed) which caused extra handling to be required when walking the
map (as elements may've already been replaced due to prior entries). By
avoiding adding the duplicates, the checks in the replacement handling
can be replaced with assertions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions
