From 9dd2e0872e045bc7fe3c664a81bb537569059623 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 26 Oct 2012 22:20:25 +0000 Subject: Add comment for my patch in r166809. llvm-svn: 166823 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 65ba91a6389..9617de8eb7a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2583,6 +2583,8 @@ void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { for (RecordDecl::decl_iterator I = LSD->decls_begin(), E = LSD->decls_end(); I != E; ++I) { + // Meta-data for ObjC class includes references to implemented methods. + // Generate class's method definitions first. if (ObjCImplDecl *OID = dyn_cast(*I)) { for (ObjCContainerDecl::method_iterator M = OID->meth_begin(), MEnd = OID->meth_end(); -- cgit v1.2.3