GNUStep fast enumeration.
Patch by David Chisnall.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63666 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index bd1ba68..a1bd9d7 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -994,7 +994,9 @@
 }
 
 llvm::Function *CGObjCGNU::EnumerationMutationFunction() {
-  return 0;
+return  
+  (llvm::Function*)TheModule.getOrInsertFunction(
+    "objc_enumerationMutation", llvm::Type::VoidTy, IdTy, NULL);
 }
 
 void CGObjCGNU::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF,