diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2022-07-23 15:07:49 +0200 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2022-07-23 15:13:25 +0200 |
commit | cd9a5cfd2e4e4d583c9bf5ef1100acaf5e96f29e (patch) | |
tree | c5068be09b26633a36772ed5786e1fb5441e3b00 /llvm/tools/llvm-dwarfdump | |
parent | 5f89d2bae964e21d8b7e9226c594d15d1c2e8325 (diff) | |
download | llvm-cd9a5cfd2e4e4d583c9bf5ef1100acaf5e96f29e.zip llvm-cd9a5cfd2e4e4d583c9bf5ef1100acaf5e96f29e.tar.gz llvm-cd9a5cfd2e4e4d583c9bf5ef1100acaf5e96f29e.tar.bz2 |
Use the range-based overload of llvm::sort where possible
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D130403
Diffstat (limited to 'llvm/tools/llvm-dwarfdump')
-rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index f7d3052..cc7f353 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -544,7 +544,7 @@ static bool collectObjectSources(ObjectFile &Obj, DWARFContext &DICtx, } // Dedup and order the sources. - llvm::sort(Sources.begin(), Sources.end()); + llvm::sort(Sources); Sources.erase(std::unique(Sources.begin(), Sources.end()), Sources.end()); for (StringRef Name : Sources) |