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
37 lines
1001 B
Objective-C
37 lines
1001 B
Objective-C
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
|
|
// rdar://problem/9468526
|
|
//
|
|
// Setting a breakpoint on a property should create breakpoints in
|
|
// synthesized getters/setters.
|
|
//
|
|
@interface I {
|
|
int _p1;
|
|
}
|
|
// Test that the linetable entries for the synthesized getter and
|
|
// setter are correct.
|
|
//
|
|
// CHECK: define {{.*}}[I p1]
|
|
// CHECK-NOT: ret
|
|
// CHECK: load {{.*}}, !dbg ![[DBG1:[0-9]+]]
|
|
//
|
|
// CHECK: define {{.*}}[I setP1:]
|
|
// CHECK-NOT: ret
|
|
// CHECK: load {{.*}}, !dbg ![[DBG2:[0-9]+]]
|
|
//
|
|
// CHECK: !DISubprogram(name: "-[I p1]",{{.*}} line: [[@LINE+4]],{{.*}} isLocal: true, isDefinition: true
|
|
// CHECK: !DISubprogram(name: "-[I setP1:]",{{.*}} line: [[@LINE+3]],{{.*}} isLocal: true, isDefinition: true
|
|
// CHECK: ![[DBG1]] = !DILocation(line: [[@LINE+2]],
|
|
// CHECK: ![[DBG2]] = !DILocation(line: [[@LINE+1]],
|
|
@property int p1;
|
|
@end
|
|
|
|
@implementation I
|
|
@synthesize p1 = _p1;
|
|
@end
|
|
|
|
int main() {
|
|
I *myi;
|
|
myi.p1 = 2;
|
|
return myi.p1;
|
|
}
|