diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-14 16:25:36 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-14 16:25:36 -0700 |
commit | 6d9cd9199a6fdeab0412117bcefc28f625510b61 (patch) | |
tree | 666865fb63c0bc99ef035b106420b98c0c290c1c /llvm/tools/gold | |
parent | c4566cac490cf81c141e7deb84008b2cc1de48b7 (diff) | |
download | llvm-6d9cd9199a6fdeab0412117bcefc28f625510b61.zip llvm-6d9cd9199a6fdeab0412117bcefc28f625510b61.tar.gz llvm-6d9cd9199a6fdeab0412117bcefc28f625510b61.tar.bz2 |
Use llvm::all_of (NFC)
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index f1b457b..2f2579f 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -722,8 +722,8 @@ static std::string getThinLTOObjectFileName(StringRef Path, StringRef OldSuffix, // Returns true if S is valid as a C language identifier. static bool isValidCIdentifier(StringRef S) { return !S.empty() && (isAlpha(S[0]) || S[0] == '_') && - std::all_of(S.begin() + 1, S.end(), - [](char C) { return C == '_' || isAlnum(C); }); + llvm::all_of(llvm::drop_begin(S), + [](char C) { return C == '_' || isAlnum(C); }); } static bool isUndefined(ld_plugin_symbol &Sym) { |