forked from OSchip/llvm-project
parent
5e5927eb0b
commit
8678a4a987
|
@ -337,8 +337,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||||
return llvm::DIType();
|
return llvm::DIType();
|
||||||
case BuiltinType::ObjCClass:
|
case BuiltinType::ObjCClass:
|
||||||
return DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
return DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
||||||
"objc_class", getOrCreateMainFile(),
|
"objc_class", getOrCreateMainFile(),
|
||||||
0);
|
0);
|
||||||
case BuiltinType::ObjCId: {
|
case BuiltinType::ObjCId: {
|
||||||
// typedef struct objc_class *Class;
|
// typedef struct objc_class *Class;
|
||||||
// typedef struct objc_object {
|
// typedef struct objc_object {
|
||||||
|
@ -347,8 +347,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||||
|
|
||||||
llvm::DIType OCTy =
|
llvm::DIType OCTy =
|
||||||
DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
||||||
"objc_class", getOrCreateMainFile(),
|
"objc_class", getOrCreateMainFile(),
|
||||||
0);
|
0);
|
||||||
unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
|
unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
|
||||||
|
|
||||||
llvm::DIType ISATy = DBuilder.createPointerType(OCTy, Size);
|
llvm::DIType ISATy = DBuilder.createPointerType(OCTy, Size);
|
||||||
|
@ -368,8 +368,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||||
case BuiltinType::ObjCSel: {
|
case BuiltinType::ObjCSel: {
|
||||||
return
|
return
|
||||||
DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type,
|
||||||
"objc_selector", getOrCreateMainFile(),
|
"objc_selector", getOrCreateMainFile(),
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
case BuiltinType::UChar:
|
case BuiltinType::UChar:
|
||||||
case BuiltinType::Char_U: Encoding = llvm::dwarf::DW_ATE_unsigned_char; break;
|
case BuiltinType::Char_U: Encoding = llvm::dwarf::DW_ATE_unsigned_char; break;
|
||||||
|
|
Loading…
Reference in New Issue