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
36 lines
463 B
Objective-C
36 lines
463 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-gc -emit-llvm -debug-info-kind=limited -o - %s
|
|
// Check that this doesn't crash when compiled with debugging on.
|
|
@class Foo;
|
|
typedef struct Bar *BarRef;
|
|
|
|
@interface Baz
|
|
@end
|
|
|
|
@interface Foo
|
|
- (void) setFlag;
|
|
@end
|
|
|
|
@implementation Baz
|
|
|
|
- (void) a:(BarRef)b
|
|
{
|
|
Foo* view = (Foo*)self;
|
|
[view setFlag];
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
@implementation Foo
|
|
{
|
|
int flag : 1;
|
|
}
|
|
|
|
- (void) setFlag
|
|
{
|
|
if (!flag)
|
|
flag = 1;
|
|
}
|
|
|
|
@end
|