From: Fariborz Jahanian Date: Thu, 16 Feb 2012 21:57:59 +0000 (+0000) Subject: fix the property list metadata name. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeabf381862e53519cd0f9f65c1cc2a983c72159;p=clang fix the property list metadata name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150728 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp index 4c4f32bf2b..8f45290528 100644 --- a/lib/Rewrite/RewriteModernObjC.cpp +++ b/lib/Rewrite/RewriteModernObjC.cpp @@ -5528,7 +5528,7 @@ static void Write__class_ro_t_initializer(ASTContext *Context, std::string &Resu Result += "0, \n\t"; if (!metaclass && Properties.size() > 0) { Result += "(const struct _prop_list_t *)&"; - Result += "_OBJC_CLASS_PROPERTIES_$_"; Result += ClassName; + Result += "_OBJC_$_PROP_LIST_"; Result += ClassName; Result += ",\n"; } else @@ -6006,7 +6006,7 @@ void RewriteModernObjC::RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, Write_prop_list_t_initializer(*this, Context, Result, ClassProperties, /* Container */0, - "_OBJC_CLASS_PROPERTIES_$_", + "_OBJC_$_PROP_LIST_", CDecl->getNameAsString());