[llvm] r189168 - Simplify code. No functionality change.
Benjamin Kramer
benny.kra at googlemail.com
Sat Aug 24 05:15:54 PDT 2013
Author: d0k
Date: Sat Aug 24 07:15:54 2013
New Revision: 189168
URL: http://llvm.org/viewvc/llvm-project?rev=189168&view=rev
Log:
Simplify code. No functionality change.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=189168&r1=189167&r2=189168&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sat Aug 24 07:15:54 2013
@@ -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,
More information about the llvm-commits
mailing list