Add clang.arc.used to ModuleHasARC so ARC always runs if said call is present in...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 29 Mar 2013 21:15:23 +0000 (21:15 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 29 Mar 2013 21:15:23 +0000 (21:15 +0000)
commit3b8f8778607d0438acc9bc2c87a5870cdc142da6
treef0634ea3786cd767a1bb86e9fcdd0ca5d70d971f
parentadd82b3c755d960ad2924138ac8c3fa5562fb2bb
Add clang.arc.used to ModuleHasARC so ARC always runs if said call is present in a module.

clang.arc.used is an interesting call for ARC since ObjCARCContract
needs to run to remove said intrinsic to avoid a linker error (since the
call does not exist).

llvm-svn: 178369
llvm/lib/Transforms/ObjCARC/ObjCARC.h
llvm/test/Transforms/ObjCARC/clang-arc-used-intrinsic-removed-if-isolated.ll [new file with mode: 0644]