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)
commit3e9f3a0389488701bd1cb5c778d0e785c827d790
treeb535070ad57755695d14e9adf2d85557ab2255a6
parent2a88555e0d92a22b50966b223bab19d8518a8f27
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARC.h
test/Transforms/ObjCARC/clang-arc-used-intrinsic-removed-if-isolated.ll [new file with mode: 0644]