summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-03-31 08:48:19 +0000
committerFangrui Song <maskray@google.com>2019-03-31 08:48:19 +0000
commit75e74e077c9fed24c00fb5e12078df2b192841da (patch)
treef3d417ebdba005b4b25dbfc350ab4159662a3418 /clang/lib/AST/MicrosoftMangle.cpp
parenteaf4484e94e7de38ef9d80cb80d92b26ef5f657e (diff)
downloadbcm5719-llvm-75e74e077c9fed24c00fb5e12078df2b192841da.tar.gz
bcm5719-llvm-75e74e077c9fed24c00fb5e12078df2b192841da.zip
Range-style std::find{,_if} -> llvm::find{,_if}. NFC
llvm-svn: 357359
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index c5db936b861..0d4080cce40 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -1268,8 +1268,7 @@ void MicrosoftCXXNameMangler::mangleOperatorName(OverloadedOperatorKind OO,
void MicrosoftCXXNameMangler::mangleSourceName(StringRef Name) {
// <source name> ::= <identifier> @
- BackRefVec::iterator Found =
- std::find(NameBackReferences.begin(), NameBackReferences.end(), Name);
+ BackRefVec::iterator Found = llvm::find(NameBackReferences, Name);
if (Found == NameBackReferences.end()) {
if (NameBackReferences.size() < 10)
NameBackReferences.push_back(Name);
@@ -3462,8 +3461,7 @@ void MicrosoftMangleContextImpl::mangleStringLiteral(const StringLiteral *SL,
} else {
const char SpecialChars[] = {',', '/', '\\', ':', '.',
' ', '\n', '\t', '\'', '-'};
- const char *Pos =
- std::find(std::begin(SpecialChars), std::end(SpecialChars), Byte);
+ const char *Pos = llvm::find(SpecialChars, Byte);
if (Pos != std::end(SpecialChars)) {
Mangler.getStream() << '?' << (Pos - std::begin(SpecialChars));
} else {
OpenPOWER on IntegriCloud