forked from OSchip/llvm-project
parent
9f5abd8e44
commit
19ba2b4d6e
|
@ -313,6 +313,12 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
|
|||
getOrCreateMainFile(),
|
||||
0, 0, 0, 0, Elements);
|
||||
}
|
||||
case BuiltinType::ObjCSel: {
|
||||
return DBuilder.CreateStructType(TheCU, "objc_selector",
|
||||
getOrCreateMainFile(), 0, 0, 0,
|
||||
llvm::DIDescriptor::FlagFwdDecl,
|
||||
llvm::DIArray());
|
||||
}
|
||||
case BuiltinType::UChar:
|
||||
case BuiltinType::Char_U: Encoding = llvm::dwarf::DW_ATE_unsigned_char; break;
|
||||
case BuiltinType::Char_S:
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
|
||||
// Radar 8494540
|
||||
|
||||
// CHECK: objc_selector
|
||||
@interface MyClass {
|
||||
}
|
||||
- (id)init;
|
||||
@end
|
||||
|
||||
@implementation MyClass
|
||||
- (id) init
|
||||
{
|
||||
return self;
|
||||
}
|
||||
@end
|
Loading…
Reference in New Issue