mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
3459ce2e5e
With this change, most 'g' options are rejected by CompilerInvocation. They remain only as Driver options. The new way to request debug info from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}" and "-dwarf-version={2|3|4}". In the absence of a command-line option to specify Dwarf version, the Toolchain decides it, rather than placing Toolchain-specific logic in CompilerInvocation. Also fix a bug in the Windows compatibility argument parsing in which the "rightmost argument wins" principle failed. Differential Revision: http://reviews.llvm.org/D13221 llvm-svn: 249655
28 lines
932 B
Objective-C
28 lines
932 B
Objective-C
// RUN: %clang_cc1 -triple arm-apple-ios -emit-llvm -debug-info-kind=limited -fblocks -fobjc-runtime=ios-7.0.0 -fobjc-arc %s -o - | FileCheck %s
|
|
// rdar://problem/14990656
|
|
@protocol NSObject
|
|
- (id)copy;
|
|
@end
|
|
@class W;
|
|
@interface View1
|
|
@end
|
|
@implementation Controller {
|
|
void (^Block)(void);
|
|
}
|
|
- (void)View:(View1 *)View foo:(W *)W
|
|
{
|
|
// The debug type for these two will be identical, because we do not
|
|
// actually emit the ownership qualifier.
|
|
// CHECK: !DILocalVariable(name: "weakSelf",
|
|
// CHECK-SAME: line: [[@LINE+2]]
|
|
// CHECK-SAME: type: ![[SELFTY:[0-9]+]]
|
|
__attribute__((objc_ownership(weak))) __typeof(self) weakSelf = self;
|
|
Block = [^{
|
|
// CHECK: !DILocalVariable(name: "strongSelf",
|
|
// CHECK-SAME: line: [[@LINE+2]]
|
|
// CHECK-SAME: type: ![[SELFTY]]
|
|
__attribute__((objc_ownership(strong))) __typeof(self) strongSelf = weakSelf;
|
|
} copy];
|
|
}
|
|
@end
|