[cfe-commits] r152751 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

jahanian fjahanian at apple.com
Wed Mar 21 09:04:42 PDT 2012


On Mar 20, 2012, at 8:29 PM, NAKAMURA Takumi wrote:

> 2012/3/15 Fariborz Jahanian <fjahanian at apple.com>:
>> Author: fjahanian
>> Date: Wed Mar 14 18:18:19 2012
>> New Revision: 152751
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=152751&view=rev
>> Log:
>> modern objective-c translator: section info.
>> and metadata for "non-lazy" class and categories.
>> 
>> Modified:
>>    cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
>> 
>> Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=152751&r1=152750&r2=152751&view=diff
>> ==============================================================================
> 
>> @@ -5641,14 +5653,20 @@
>>  static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context,
>>                              std::string &Result,
>>                              StringRef CatName,
>> -                             StringRef ClassName,
>> +                             ObjCInterfaceDecl *ClassDecl,
>>                              ArrayRef<ObjCMethodDecl *> InstanceMethods,
>>                              ArrayRef<ObjCMethodDecl *> ClassMethods,
>>                              ArrayRef<ObjCProtocolDecl *> RefedProtocols,
>>                              ArrayRef<ObjCPropertyDecl *> ClassProperties) {
>> +
>> +  StringRef ClassName = ClassDecl->getNameAsString();
>>   // must declare an extern class object in case this class is not implemented
>>   // in this TU.
> 
> (std::string)getNameAsString() cannot be used here.
> Fixed in r153156. Please reconfirm.
> 

Yes. Thanks.

- Fariborz

> ...Takumi




More information about the cfe-commits mailing list