]> granicus.if.org Git - clang/commitdiff
Remove uses of SmallString::equals in favor of SmallVectorImpl<char>'s operator==
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Mar 2014 05:18:27 +0000 (05:18 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Mar 2014 05:18:27 +0000 (05:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/LiteralSupport.cpp
lib/Sema/AttributeList.cpp

index a71518184ca9026f95615ff37ce7e9884359fbf1..ddfa10c69879ae188bd27fdca0c1b2ef2e6ffa39 100644 (file)
@@ -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)
index c4c1b805c1617ceaf93ea2d7e84fff801035bbbe..476a22b628adb17376dae5a339cd30305f03e65e 100644 (file)
@@ -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);