[clang] Use SourceLocation as key in std::map, NFCI
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Mon, 19 Oct 2020 17:30:51 +0000 (18:30 +0100)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Mon, 19 Oct 2020 17:31:05 +0000 (18:31 +0100)
commita3c16039b3f119cd83d872f256c45599ae6ac60c
treeac12871e6c4e033fe750364594e2c3029b5492ea
parent3cbdae22b91b94d21c0ca348e5ceea7081c9887d
[clang] Use SourceLocation as key in std::map, NFCI

SourceLocation implements `operator<`, so `SourceLocation`-s can be used
as keys in `std::map` directly, there is no need to extract the internal
representation.

Since the `operator<` simply compares the internal representations of
its operands, this patch does not introduce any functional changes.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D89705
clang/lib/ARCMigrate/TransProperties.cpp
clang/lib/Frontend/Rewrite/InclusionRewriter.cpp