structure to hold inferred information, then propagate each invididual bit down to -cc1. Separate the bits of "supports weak" and "has a native ARC runtime"; make the latter a CodeGenOption. The tool chain is still driving this decision, because it's the place that has the required deployment target information on Darwin, but at least it's better-factored now. llvm-svn: 134453
10 lines
260 B
Objective-C
10 lines
260 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -fobjc-nonfragile-abi -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// rdar://problem/9224855
|
|
void test0() {
|
|
id x = 0;
|
|
// CHECK: call void @objc_release(
|
|
}
|
|
|
|
// CHECK: declare extern_weak void @objc_release(
|