summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-09 05:18:27 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-09 05:18:27 +0000
commitdcb72d72ff373d1baa3c25782604f60756d0d803 (patch)
tree229a8f13cca3dec8fe2108ab8ee36b7221982c5b /clang/lib
parent0098a4bd0434d9e65439748e08bc9b60d0220ca9 (diff)
downloadbcm5719-llvm-dcb72d72ff373d1baa3c25782604f60756d0d803.tar.gz
bcm5719-llvm-dcb72d72ff373d1baa3c25782604f60756d0d803.zip
Remove uses of SmallString::equals in favor of SmallVectorImpl<char>'s operator==
llvm-svn: 203373
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp2
-rw-r--r--clang/lib/Sema/AttributeList.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index a71518184ca..ddfa10c6987 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/lib/Lex/LiteralSupport.cpp
@@ -1373,7 +1373,7 @@ void StringLiteralParser::init(const Token *StringToks, unsigned NumStringToks){
// result of a concatenation involving at least one user-defined-string-
// literal, all the participating user-defined-string-literals shall
// have the same ud-suffix.
- if (!UDSuffixBuf.equals(UDSuffix)) {
+ if (UDSuffixBuf != UDSuffix) {
if (Diags) {
SourceLocation TokLoc = StringToks[i].getLocation();
Diags->Report(TokLoc, diag::err_string_concat_mixed_suffix)
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp
index c4c1b805c16..476a22b628a 100644
--- a/clang/lib/Sema/AttributeList.cpp
+++ b/clang/lib/Sema/AttributeList.cpp
@@ -120,7 +120,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name,
// Normalize the attribute name, __foo__ becomes foo. This is only allowable
// for GNU attributes.
bool IsGNU = SyntaxUsed == AS_GNU || (SyntaxUsed == AS_CXX11 &&
- FullName.equals("gnu"));
+ FullName == "gnu");
if (IsGNU && AttrName.size() >= 4 && AttrName.startswith("__") &&
AttrName.endswith("__"))
AttrName = AttrName.slice(2, AttrName.size() - 2);
OpenPOWER on IntegriCloud