mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 02:06:07 +00:00

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
30 lines
926 B
Objective-C
30 lines
926 B
Objective-C
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -debug-info-kind=limited %s -o - | FileCheck %s
|
|
// self and _cmd are marked as DW_AT_artificial.
|
|
// myarg is not marked as DW_AT_artificial.
|
|
|
|
@interface MyClass {
|
|
}
|
|
- (id)init:(int) myarg;
|
|
@end
|
|
|
|
@implementation MyClass
|
|
- (id) init:(int) myarg
|
|
{
|
|
return self;
|
|
}
|
|
@end
|
|
|
|
// CHECK: !DILocalVariable(name: "self", arg: 1,
|
|
// CHECK-SAME: scope: ![[CTOR:[0-9]+]]
|
|
// CHECK-NOT: line:
|
|
// CHECK-SAME: flags: DIFlagArtificial | DIFlagObjectPointer{{[,)]}}
|
|
// CHECK: !DILocalVariable(name: "_cmd", arg: 2,
|
|
// CHECK-SAME: scope: ![[CTOR]]
|
|
// CHECK-NOT: line:
|
|
// CHECK-SAME: flags: DIFlagArtificial{{[,)]}}
|
|
// CHECK: !DILocalVariable(name: "myarg", arg: 3,
|
|
// CHECK-SAME: scope: ![[CTOR]]
|
|
// CHECK-SAME: line: 11
|
|
// CHECK-NOT: flags:
|
|
// CHECK-SAME: ){{$}}
|