diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
| commit | bf3e32705a0985dd41121a0486a2870200cbaaee (patch) | |
| tree | 072a15f86aed310fc71bf1f7a3e3459fcfea9073 /clang/lib/Sema | |
| parent | 8c2a2a0f827eb1adfa84d33d324096f86192d71c (diff) | |
| download | bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.tar.gz bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.zip | |
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216825
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaAttr.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaPseudoObject.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp index a7d606d545c..6320faab374 100644 --- a/clang/lib/Sema/SemaAttr.cpp +++ b/clang/lib/Sema/SemaAttr.cpp @@ -360,7 +360,7 @@ void Sema::PragmaStack<ValueType>::Act(SourceLocation PragmaLocation, } } -bool Sema::UnifySection(const StringRef &SectionName, +bool Sema::UnifySection(StringRef SectionName, int SectionFlags, DeclaratorDecl *Decl) { auto Section = SectionInfos.find(SectionName); @@ -387,7 +387,7 @@ bool Sema::UnifySection(const StringRef &SectionName, return false; } -bool Sema::UnifySection(const StringRef &SectionName, +bool Sema::UnifySection(StringRef SectionName, int SectionFlags, SourceLocation PragmaSectionLocation) { auto Section = SectionInfos.find(SectionName); diff --git a/clang/lib/Sema/SemaPseudoObject.cpp b/clang/lib/Sema/SemaPseudoObject.cpp index aa3e89ed67a..b81b60c802e 100644 --- a/clang/lib/Sema/SemaPseudoObject.cpp +++ b/clang/lib/Sema/SemaPseudoObject.cpp @@ -615,7 +615,7 @@ bool ObjCPropertyOpBuilder::findSetter(bool warn) { if (setter->isPropertyAccessor() && warn) if (const ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(setter->getDeclContext())) { - const StringRef thisPropertyName(prop->getName()); + StringRef thisPropertyName = prop->getName(); // Try flipping the case of the first character. char front = thisPropertyName.front(); front = isLowercase(front) ? toUppercase(front) : toLowercase(front); |

