forked from OSchip/llvm-project
DI: Update DISubprogram testcases after LLVM r246098
llvm-svn: 246099
This commit is contained in:
parent
b2df64721c
commit
8cd9d7acb2
|
@ -5,8 +5,8 @@
|
|||
|
||||
// CHECK: ret void, !dbg [[F1_LINE:![0-9]*]]
|
||||
// CHECK: ret void, !dbg [[F2_LINE:![0-9]*]]
|
||||
// CHECK: [[F1:![0-9]*]] = !DISubprogram(name: "f1",{{.*}} isDefinition: true
|
||||
// CHECK: [[F2:![0-9]*]] = !DISubprogram(name: "f2",{{.*}} isDefinition: true
|
||||
// CHECK: [[F1:![0-9]*]] = distinct !DISubprogram(name: "f1",{{.*}} isDefinition: true
|
||||
// CHECK: [[F2:![0-9]*]] = distinct !DISubprogram(name: "f2",{{.*}} isDefinition: true
|
||||
// CHECK: [[F1_LINE]] = !DILocation({{.*}}, scope: [[F1]])
|
||||
// CHECK: [[F2_LINE]] = !DILocation({{.*}}, scope: [[F2]])
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ struct C {
|
|||
extern bool b;
|
||||
// CHECK: call {{.*}}, !dbg [[DTOR_CALL1_LOC:![0-9]*]]
|
||||
// CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
|
||||
// CHECK: [[FUN1:.*]] = !DISubprogram(name: "fun1",{{.*}} isDefinition: true
|
||||
// CHECK: [[FUN2:.*]] = !DISubprogram(name: "fun2",{{.*}} isDefinition: true
|
||||
// CHECK: [[FUN1:.*]] = distinct !DISubprogram(name: "fun1",{{.*}} isDefinition: true
|
||||
// CHECK: [[FUN2:.*]] = distinct !DISubprogram(name: "fun2",{{.*}} isDefinition: true
|
||||
// CHECK: [[DTOR_CALL1_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN1]])
|
||||
void fun1() { b && (C(), 1); }
|
||||
// CHECK: [[DTOR_CALL2_LOC]] = !DILocation(line: [[@LINE+1]], scope: [[FUN2]])
|
||||
|
|
|
@ -67,10 +67,10 @@ void B::func_fwd() {}
|
|||
// CHECK: [[BAR:![0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "bar",
|
||||
// CHECK-SAME: line: 6
|
||||
// CHECK-SAME: DIFlagFwdDecl
|
||||
// CHECK: [[F1:![0-9]+]] = !DISubprogram(name: "f1",{{.*}} line: 4
|
||||
// CHECK: [[F1:![0-9]+]] = distinct !DISubprogram(name: "f1",{{.*}} line: 4
|
||||
// CHECK-SAME: isDefinition: true
|
||||
// CHECK: [[FUNC:![0-9]+]] = !DISubprogram(name: "func",{{.*}} isDefinition: true
|
||||
// CHECK: [[FUNC_FWD:![0-9]+]] = !DISubprogram(name: "func_fwd",{{.*}} line: 47,{{.*}} isDefinition: true
|
||||
// CHECK: [[FUNC:![0-9]+]] = distinct !DISubprogram(name: "func",{{.*}} isDefinition: true
|
||||
// CHECK: [[FUNC_FWD:![0-9]+]] = distinct !DISubprogram(name: "func_fwd",{{.*}} line: 47,{{.*}} isDefinition: true
|
||||
// CHECK: [[I:![0-9]+]] = !DIGlobalVariable(name: "i",{{.*}} scope: [[NS]],
|
||||
// CHECK: [[VAR_FWD:![0-9]+]] = !DIGlobalVariable(name: "var_fwd",{{.*}} scope: [[NS]],
|
||||
// CHECK-SAME: line: 44
|
||||
|
|
|
@ -18,5 +18,5 @@ template struct AB<int>;
|
|||
// CHECK: call {{.*}}@"\01??_G?$AB@H@@UAEPAXI@Z"({{.*}}) #{{[0-9]*}}, !dbg [[THUNK_LOC:![0-9]*]]
|
||||
// CHECK-LABEL: define
|
||||
|
||||
// CHECK: [[THUNK_VEC_DEL_DTOR:![0-9]*]] = !DISubprogram({{.*}}function: {{.*}}@"\01??_E?$AB@H@@W3AEPAXI@Z"
|
||||
// CHECK: [[THUNK_VEC_DEL_DTOR:![0-9]*]] = distinct !DISubprogram({{.*}}function: {{.*}}@"\01??_E?$AB@H@@W3AEPAXI@Z"
|
||||
// CHECK: [[THUNK_LOC]] = !DILocation(line: 15, scope: [[THUNK_VEC_DEL_DTOR]])
|
||||
|
|
|
@ -114,9 +114,9 @@ foo func(foo f) {
|
|||
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "b"
|
||||
// CHECK-SAME: DIFlagFwdDecl
|
||||
|
||||
// CHECK: [[FUNC:![0-9]+]] = !DISubprogram(name: "func", linkageName: "_ZN7pr147634funcENS_3fooE"
|
||||
// CHECK-SAME: type: [[FUNC_TYPE:![0-9]*]]
|
||||
// CHECK-SAME: isDefinition: true
|
||||
// CHECK: [[FUNC:![0-9]+]] = distinct !DISubprogram(name: "func", linkageName: "_ZN7pr147634funcENS_3fooE"
|
||||
// CHECK-SAME: type: [[FUNC_TYPE:![0-9]*]]
|
||||
// CHECK-SAME: isDefinition: true
|
||||
}
|
||||
|
||||
void foo() {
|
||||
|
|
|
@ -20,16 +20,16 @@ int d(int x) { D y[10]; return [x,y] { return y[x].x; }(); }
|
|||
// CHECK: ![[INT:[0-9]+]] = !DIBasicType(name: "int"
|
||||
|
||||
// A: 10
|
||||
// CHECK: ![[A_FUNC:.*]] = !DISubprogram(name: "a"{{.*}}, line: [[A_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
// CHECK: ![[A_FUNC:.*]] = distinct !DISubprogram(name: "a"{{.*}}, line: [[A_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
|
||||
// B: 14
|
||||
// CHECK: ![[B_FUNC:.*]] = !DISubprogram(name: "b"{{.*}}, line: [[B_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
// CHECK: ![[B_FUNC:.*]] = distinct !DISubprogram(name: "b"{{.*}}, line: [[B_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
|
||||
// C: 17
|
||||
// CHECK: ![[C_FUNC:.*]] = !DISubprogram(name: "c"{{.*}}, line: [[C_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
// CHECK: ![[C_FUNC:.*]] = distinct !DISubprogram(name: "c"{{.*}}, line: [[C_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
|
||||
// D: 18
|
||||
// CHECK: ![[D_FUNC:.*]] = !DISubprogram(name: "d"{{.*}}, line: [[D_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
// CHECK: ![[D_FUNC:.*]] = distinct !DISubprogram(name: "d"{{.*}}, line: [[D_LINE:[0-9]+]]{{.*}}, isDefinition: true
|
||||
|
||||
|
||||
// Back to A. -- 78
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// CHECK-NOT: define
|
||||
// CHECK: ret {{.*}}, !dbg [[DBG:.*]]
|
||||
// CHECK: [[HPP:.*]] = !DIFile(filename: "./template.hpp",
|
||||
// CHECK: [[SP:.*]] = !DISubprogram(name: "bar",
|
||||
// CHECK-SAME: file: [[HPP]], line: 22
|
||||
// CHECK-SAME: isDefinition: true
|
||||
// CHECK: [[SP:.*]] = distinct !DISubprogram(name: "bar",
|
||||
// CHECK-SAME: file: [[HPP]], line: 22
|
||||
// CHECK-SAME: isDefinition: true
|
||||
// We shouldn't need a lexical block for this function.
|
||||
// CHECK: [[DBG]] = !DILocation(line: 23, scope: [[SP]])
|
||||
|
||||
|
|
|
@ -19,5 +19,5 @@ void Derived::VariadicFunction(...) { }
|
|||
//
|
||||
// CHECK: ![[CU]] = distinct !DICompileUnit({{.*}} subprograms: ![[SPs:[0-9]+]]
|
||||
// CHECK: ![[SPs]] = !{![[SP:[0-9]+]]}
|
||||
// CHECK: ![[SP]] = !DISubprogram(name: "VariadicFunction",{{.*}} function: {{[^:]+}} @_ZN7Derived16VariadicFunctionEz
|
||||
// CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction",{{.*}} function: {{[^:]+}} @_ZN7Derived16VariadicFunctionEz
|
||||
// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
|
||||
|
|
|
@ -54,9 +54,9 @@ typedef signed char BOOL;
|
|||
|
||||
@implementation AppDelegate : NSObject
|
||||
|
||||
// CHECK: ![[TESTNOSIDEEFFECT:.*]] = !DISubprogram(name: "-[AppDelegate testNoSideEffect:]"
|
||||
// CHECK-SAME: line: [[@LINE+2]]
|
||||
// CHECK-SAME: isLocal: true, isDefinition: true
|
||||
// CHECK: ![[TESTNOSIDEEFFECT:.*]] = distinct !DISubprogram(name: "-[AppDelegate testNoSideEffect:]"
|
||||
// CHECK-SAME: line: [[@LINE+2]]
|
||||
// CHECK-SAME: isLocal: true, isDefinition: true
|
||||
- (int)testNoSideEffect:(NSString *)foo {
|
||||
int x = 1;
|
||||
return 1; // Return expression
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
|
||||
// CHECK-DAG: [[DBG_LINE]] = !DILocation(line: 0, scope: ![[COPY_SP:[0-9]+]])
|
||||
// CHECK-DAG: [[COPY_LINE]] = !DILocation(line: 0, scope: ![[COPY_SP:[0-9]+]])
|
||||
// CHECK-DAG: [[COPY_SP]] = !DISubprogram(name: "__copy_helper_block_"
|
||||
// CHECK-DAG: [[COPY_SP]] = distinct !DISubprogram(name: "__copy_helper_block_"
|
||||
// CHECK-DAG: [[DESTROY_LINE]] = !DILocation(line: 0, scope: ![[DESTROY_SP:[0-9]+]])
|
||||
// CHECK-DAG: [[DESTROY_SP]] = !DISubprogram(name: "__destroy_helper_block_"
|
||||
// CHECK-DAG: [[DESTROY_SP]] = distinct !DISubprogram(name: "__destroy_helper_block_"
|
||||
typedef unsigned int NSUInteger;
|
||||
|
||||
@protocol NSObject
|
||||
|
|
Loading…
Reference in New Issue