diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-06-07 22:29:12 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-06-07 22:29:12 +0000 |
commit | a4ce906bc09d792907f3573c8c7a56b3a6333d77 (patch) | |
tree | fce1b6a3434eeb9422427db08a502f1246f2f6fb /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | fa5f6f74402bbad2f01699731bee9d79360730e6 (diff) | |
download | bcm5719-llvm-a4ce906bc09d792907f3573c8c7a56b3a6333d77.tar.gz bcm5719-llvm-a4ce906bc09d792907f3573c8c7a56b3a6333d77.zip |
address some comments on r183474:
- factor the name construction part out from constructSetterName
- rename constructSetterName to the more appropriate constructSetterSelector
no functionality change intended.
rdar://problem/14035789
llvm-svn: 183582
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index d0dcc530537..beb62362e75 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1472,12 +1472,7 @@ static bool hasDefaultSetterName(const ObjCPropertyDecl *PD, return true; assert(Setter->getDeclName().isObjCOneArgSelector()); - // Construct a setter name like SelectorTable::constructSetterName() - // does, but without entering it into the table. - SmallString<100> DefaultName("set"); - DefaultName += PD->getName(); - DefaultName[3] = toUppercase(DefaultName[3]); - return DefaultName == + return SelectorTable::constructSetterName(PD->getName()) == Setter->getDeclName().getObjCSelector().getNameForSlot(0); } |