mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6bee6319c6
commit
4321d4e4a9
@ -313,12 +313,7 @@ static bool isObjCClass(StringRef Name) {
|
||||
static bool hasObjCCategory(StringRef Name) {
|
||||
if (!isObjCClass(Name)) return false;
|
||||
|
||||
size_t pos = Name.find(')');
|
||||
if (pos != std::string::npos) {
|
||||
if (Name[pos+1] != ' ') return false;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return Name.find(") ") != StringRef::npos;
|
||||
}
|
||||
|
||||
static void getObjCClassCategory(StringRef In, StringRef &Class,
|
||||
|
Loading…
Reference in New Issue
Block a user