Emit debug info for objc_selector.

llvm-svn: 125163
This commit is contained in:
Devang Patel 2011-02-09 03:15:05 +00:00
parent 9f5abd8e44
commit 19ba2b4d6e
2 changed files with 21 additions and 0 deletions

View File

@ -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:

View File

@ -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