Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenObjC/debug-info-direct-method.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s // RUN: %clang_cc1 -dwarf-version=4 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s // RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - -DDISABLE_DIRECT | FileCheck --check-prefix=CHECK-DISABLED %s __attribute__((objc_root_class)) @interface Root @end @implementation Root - (int)getInt #ifndef DISABLE_DIRECT __attribute__((objc_direct)) #endif { return 42; } @end // Test that objc_direct methods are always (even in DWARF < 5) emitted // as members of their containing class. // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Root", // CHECK-SAME: elements: ![[MEMBERS:[0-9]+]], // CHECK-SAME: runtimeLang: DW_LANG_ObjC) // CHECK: ![[MEMBERS]] = !{![[GETTER:[0-9]+]]} // CHECK: ![[GETTER]] = !DISubprogram(name: "-[Root getInt]", // CHECK-SAME: spFlags: DISPFlagObjCDirect // CHECK-DISABLED-NOT: DISPFlagObjCDirect