diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-31 18:59:37 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-31 18:59:37 +0000 |
commit | 38a7f11a5a843aa3eae66dc35c337f869f247c23 (patch) | |
tree | 480310b4ec96c1e5a232ec6be74f0fa9e28cf38f /clang/test/CodeGenCXX | |
parent | ed013cd221aea3911dc0c8f33948c05799f751c0 (diff) | |
download | bcm5719-llvm-38a7f11a5a843aa3eae66dc35c337f869f247c23.tar.gz bcm5719-llvm-38a7f11a5a843aa3eae66dc35c337f869f247c23.zip |
DI: Update testcases for LLVM assembly change
Update testcases after LLVM change r243774.
Most of these had no need to check `tag:` field, but did so as a way of
getting to the `name:` field. In a few cases I've converted the `tag:`
checks to `arg:` or `CHECK-NOT: arg:`.
llvm-svn: 243775
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r-- | clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp | 4 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-method.cpp | 7 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-qualifiers.cpp | 4 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-scope.cpp | 16 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-varargs.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/debug-info.cpp | 6 |
7 files changed, 22 insertions, 19 deletions
diff --git a/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp b/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp index 048811f6e64..6b6d5573618 100644 --- a/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp +++ b/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp @@ -1,5 +1,5 @@ //RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s -//CHECK: DW_TAG_auto_variable +//CHECK: DILocalVariable( class Foo { public: diff --git a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp b/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp index ad3b6d4c623..96b1fd60334 100644 --- a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp +++ b/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp @@ -34,8 +34,8 @@ void foo() { // CHECK: !DIGlobalVariable(name: "d",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true // CHECK: !DIGlobalVariable(name: "a",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true // CHECK: !DIGlobalVariable(name: "b",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true -// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", {{.*}}, flags: DIFlagArtificial -// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "c", {{.*}}, flags: DIFlagArtificial +// CHECK: !DILocalVariable(name: "i", {{.*}}, flags: DIFlagArtificial +// CHECK: !DILocalVariable(name: "c", {{.*}}, flags: DIFlagArtificial // CHECK: !DILocalVariable( // CHECK-NOT: name: // CHECK: type: ![[UNION:[0-9]+]] diff --git a/clang/test/CodeGenCXX/debug-info-method.cpp b/clang/test/CodeGenCXX/debug-info-method.cpp index 3ce05bd2d6b..b71a15b339d 100644 --- a/clang/test/CodeGenCXX/debug-info-method.cpp +++ b/clang/test/CodeGenCXX/debug-info-method.cpp @@ -8,9 +8,10 @@ // CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[MEMFUNTYPE:[0-9]+]] // CHECK: ![[MEMFUNTYPE]] = !DISubroutineType(types: ![[MEMFUNARGS:[0-9]+]]) // CHECK: ![[MEMFUNARGS]] = {{.*}}, ![[THISTYPE]], -// CHECK: !DILocalVariable(tag: DW_TAG_arg_variable -// CHECK: !DILocalVariable(tag: DW_TAG_arg_variable -// CHECK: !DILocalVariable(tag: DW_TAG_arg_variable +// CHECK: !DILocalVariable(name: "this", arg: 1 +// CHECK: !DILocalVariable(arg: 2 +// CHECK: !DILocalVariable(arg: 3 +// CHECK: !DILocalVariable(arg: 4 union { int a; float b; diff --git a/clang/test/CodeGenCXX/debug-info-qualifiers.cpp b/clang/test/CodeGenCXX/debug-info-qualifiers.cpp index 9458e1f825e..af483e17845 100644 --- a/clang/test/CodeGenCXX/debug-info-qualifiers.cpp +++ b/clang/test/CodeGenCXX/debug-info-qualifiers.cpp @@ -22,13 +22,13 @@ public: void g() { A a; // The type of pl is "void (A::*)() const &". - // CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "pl", + // CHECK: !DILocalVariable(name: "pl", // CHECK-SAME: line: [[@LINE+3]] // CHECK-SAME: type: ![[PL:[0-9]+]] // CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[PLSR]] auto pl = &A::l; - // CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "pr", + // CHECK: !DILocalVariable(name: "pr", // CHECK-SAME: line: [[@LINE+3]] // CHECK-SAME: type: ![[PR:[0-9]+]] // CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[PRSR]] diff --git a/clang/test/CodeGenCXX/debug-info-scope.cpp b/clang/test/CodeGenCXX/debug-info-scope.cpp index 478b7895e4e..d14de6fc806 100644 --- a/clang/test/CodeGenCXX/debug-info-scope.cpp +++ b/clang/test/CodeGenCXX/debug-info-scope.cpp @@ -9,14 +9,14 @@ int src(); void f(); void func() { - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" + // CHECK: = !DILocalVariable(name: "i" // CHECK-SAME: scope: [[IF1:![0-9]*]] // CHECK-SAME: line: [[@LINE+2]] // CHECK: [[IF1]] = distinct !DILexicalBlock({{.*}}line: [[@LINE+1]]) if (int i = src()) f(); - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" + // CHECK: = !DILocalVariable(name: "i" // CHECK-SAME: scope: [[IF2:![0-9]*]] // CHECK-SAME: line: [[@LINE+2]] // CHECK: [[IF2]] = distinct !DILexicalBlock({{.*}}line: [[@LINE+1]]) @@ -25,12 +25,12 @@ void func() { } else f(); - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" + // CHECK: = !DILocalVariable(name: "i" // CHECK-SAME: scope: [[FOR:![0-9]*]] // CHECK-SAME: line: [[@LINE+2]] // CHECK: [[FOR]] = distinct !DILexicalBlock({{.*}}line: [[@LINE+1]]) for (int i = 0; - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "b" + // CHECK: = !DILocalVariable(name: "b" // CHECK-SAME: scope: [[FOR_BODY:![0-9]*]] // CHECK-SAME: line: [[@LINE+6]] // CHECK: [[FOR_BODY]] = distinct !DILexicalBlock({{.*}}line: [[@LINE-4]]) @@ -41,7 +41,7 @@ void func() { bool b = i != 10; ++i) f(); - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" + // CHECK: = !DILocalVariable(name: "i" // CHECK-SAME: scope: [[FOR:![0-9]*]] // CHECK-SAME: line: [[@LINE+2]] // CHECK: [[FOR]] = distinct !DILexicalBlock({{.*}}line: [[@LINE+1]]) @@ -50,7 +50,7 @@ void func() { // or using declarations) as direct children, they just waste // space/relocations/etc. // CHECK: [[FOR_LOOP_INCLUDING_COND:!.*]] = distinct !DILexicalBlock(scope: [[FOR]],{{.*}} line: [[@LINE-4]]) - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "b" + // CHECK: = !DILocalVariable(name: "b" // CHECK-SAME: scope: [[FOR_COMPOUND:![0-9]*]] // CHECK-SAME: line: [[@LINE+2]] // CHECK: [[FOR_COMPOUND]] = distinct !DILexicalBlock(scope: [[FOR_LOOP_INCLUDING_COND]],{{.*}} line: [[@LINE-8]]) @@ -58,13 +58,13 @@ void func() { } int x[] = {1, 2}; - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "__range" + // CHECK: = !DILocalVariable(name: "__range" // CHECK-SAME: scope: [[RANGE_FOR:![0-9]*]] // CHECK-NOT: line: // CHECK-SAME: ){{$}} // CHECK: [[RANGE_FOR]] = distinct !DILexicalBlock({{.*}}, line: [[@LINE+1]]) for (int i : x) { - // CHECK: = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" + // CHECK: = !DILocalVariable(name: "i" // CHECK-SAME: scope: [[RANGE_FOR_BODY:![0-9]*]] // CHECK-SAME: line: [[@LINE-3]] // CHECK: [[RANGE_FOR_BODY]] = distinct !DILexicalBlock(scope: [[RANGE_FOR]],{{.*}} line: [[@LINE-4]]) diff --git a/clang/test/CodeGenCXX/debug-info-varargs.cpp b/clang/test/CodeGenCXX/debug-info-varargs.cpp index edcb0e5a53d..ada1970f1ca 100644 --- a/clang/test/CodeGenCXX/debug-info-varargs.cpp +++ b/clang/test/CodeGenCXX/debug-info-varargs.cpp @@ -20,7 +20,7 @@ void b(int c, ...) { A a; - // CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "fptr" + // CHECK: !DILocalVariable(name: "fptr" // CHECK-SAME: line: [[@LINE+2]] // CHECK-SAME: type: ![[PST:[0-9]+]] void (*fptr)(int, ...) = b; diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/CodeGenCXX/debug-info.cpp index 13753684800..bf71bae6b09 100644 --- a/clang/test/CodeGenCXX/debug-info.cpp +++ b/clang/test/CodeGenCXX/debug-info.cpp @@ -142,11 +142,13 @@ incomplete (*x)[3]; } // For some reason function arguments ended up down here -// CHECK: ![[F]] = !DILocalVariable(tag: DW_TAG_arg_variable, name: "f", arg: 1, scope: [[FUNC]] +// CHECK: ![[F]] = !DILocalVariable(name: "f", arg: 1, scope: [[FUNC]] // CHECK-SAME: type: !"[[FOO]]" // CHECK: ![[EXPR]] = !DIExpression(DW_OP_deref) -// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "c" +// CHECK: !DILocalVariable(name: "c" +// CHECK-NOT: arg: +// CHECK-SAME: ) namespace pr16214 { struct a { |