From d4808924450e86391475b7c6e6c119cd642ae971 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 Mar 2009 21:03:39 +0000 Subject: pull "runtime globals" into the same framework as other functions/global variables. No intended functionality change. llvm-svn: 67478 --- clang/lib/CodeGen/CGObjC.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index acc07c740a9..de63f51b330 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -422,9 +422,8 @@ void CodeGenFunction::EmitObjCPropertySet(const Expr *Exp, assert (0 && "bad expression node in EmitObjCPropertySet"); } -void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S) -{ - llvm::Function *EnumerationMutationFn = +void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S){ + llvm::Constant *EnumerationMutationFn = CGM.getObjCRuntime().EnumerationMutationFunction(); llvm::Value *DeclAddress; QualType ElementTy; -- cgit v1.2.3