diff options
author | Anders Carlsson <andersca@mac.com> | 2008-08-31 04:05:03 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-08-31 04:05:03 +0000 |
commit | 2abd89c039e835e84519a4cd8a7495899a70153d (patch) | |
tree | d0f14f41d42c5eb75f43e04428bf5d37d56d0c24 /lib/CodeGen/CGObjCGNU.cpp | |
parent | f484c31f4d6934f56070c2942d4dfdf3fee84074 (diff) |
Handle mutation while enumerating correctly. Fix some bugs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 4565fbfeb0..4d69aed816 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -120,6 +120,7 @@ public: const ObjCProtocolDecl *PD); virtual void GenerateProtocol(const ObjCProtocolDecl *PD); virtual llvm::Function *ModuleInitFunction(); + virtual llvm::Function *EnumerationMutationFunction(); }; } // end anonymous namespace @@ -958,6 +959,13 @@ llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD) { return Method; } +llvm::Function *CGObjCGNU::EnumerationMutationFunction() +{ + assert(0 && "No enumeration mutation function in the GNU runtime!"); + + return 0; +} + CodeGen::CGObjCRuntime *CodeGen::CreateGNUObjCRuntime(CodeGen::CodeGenModule &CGM){ return new CGObjCGNU(CGM); } |