aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorChristopher Di Bella <cjdb@google.com>2021-06-23 01:25:31 +0000
committerChristopher Di Bella <cjdb@google.com>2021-06-24 17:57:29 +0000
commitd87f159ab675153ef58eae138d6ca223c45f14c8 (patch)
tree4f9be92bc0e5cbb05d88c1df2e679394238ae738 /llvm/lib/Support/StringRef.cpp
parent652f4b5140e231b679564a86019307291f7bf7cc (diff)
downloadllvm-d87f159ab675153ef58eae138d6ca223c45f14c8.zip
llvm-d87f159ab675153ef58eae138d6ca223c45f14c8.tar.gz
llvm-d87f159ab675153ef58eae138d6ca223c45f14c8.tar.bz2
[libcxx][NFC] removes `swap`'s dependency on `swap_ranges`
Under the as-if rule, we can directly implement the array overload for `std::swap`. By removing this circular dependency where `swap` is implemented in terms of `swap_ranges` and `swap_ranges` is defined in terms of `swap`, we can split them into their own headers. This will: * limit the surface area in which Hyrum's law can bite us; * force users to include the correct headers; * make finding the definitions trivial (`swap` is a utility; `swap_ranges` is an algorithm). Differential Revision: https://reviews.llvm.org/D104760
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions