[objc-arc] Refactor runtime entrypoint declaration entrypoint creation.
authorMichael Gottesman <mgottesman@apple.com>
Sat, 6 Jul 2013 01:39:18 +0000 (01:39 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sat, 6 Jul 2013 01:39:18 +0000 (01:39 +0000)
commita94186a4c0cf8c920ee1f449bdaebb07adf570bb
tree3abdfacdaa85b9f09210e6ad27fa98cd1205708d
parentefe31f295110c1bb4a6e44f5dc075d07e55c4c67
[objc-arc] Refactor runtime entrypoint declaration entrypoint creation.

This is the first patch in a series of 3 patches which clean up how we create
runtime function declarations in the ARC optimizer when they do not exist
already in the IR.

Currently we have a bunch of duplicated code in ObjCARCOpts, ObjCARCContract
that does this. This patch refactors that code into a separate class called
ARCRuntimeEntryPoints which lazily creates the declarations for said
entrypoints.

The next two patches will consist of the work of refactoring
ObjCARCContract/ObjCARCOpts to use this new code.

llvm-svn: 185740
llvm/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h [new file with mode: 0644]