[PATCH] D14848: Add -disable-llvm-passes for frontend debug info tests.
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 20 09:41:14 PST 2015
danielcdh updated this revision to Diff 40791.
danielcdh added a comment.
Add comment back.
http://reviews.llvm.org/D14848
Files:
test/CodeGen/debug-info-scope.c
test/CodeGenObjC/arc-linetable.m
Index: test/CodeGenObjC/arc-linetable.m
===================================================================
--- test/CodeGenObjC/arc-linetable.m
+++ test/CodeGenObjC/arc-linetable.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -fblocks -fobjc-arc -debug-info-kind=standalone -dwarf-version=4 -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -fblocks -fobjc-arc -debug-info-kind=standalone -dwarf-version=4 -disable-llvm-passes -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
// Legend: EXP = Return expression, RET = ret instruction
@@ -34,9 +34,9 @@
// CHECK: define {{.*}}testCleanupVoid
// CHECK: icmp ne {{.*}}!dbg ![[SKIP1:[0-9]+]]
-// CHECK: store i32 0, i32* {{.*}}, !dbg ![[STORE8:[0-9]+]]
-// CHECK: @objc_storeStrong{{.*}}, !dbg ![[ARC8:[0-9]+]]
-// CHECK: ret {{.*}} !dbg ![[RET8:[0-9]+]]
+// CHECK: store i32 0, i32* {{.*}}, !dbg ![[RET8:[0-9]+]]
+// CHECK: @objc_storeStrong{{.*}}, !dbg ![[RET8]]
+// CHECK: ret {{.*}} !dbg ![[RET8]]
typedef signed char BOOL;
@@ -112,8 +112,6 @@
[delegate testVoid :s];
}
}
- // CHECK: ![[STORE8]] = !DILocation(line: [[@LINE+3]], scope:
- // CHECK: ![[ARC8]] = !DILocation(line: [[@LINE+2]], scope:
// CHECK: ![[RET8]] = !DILocation(line: [[@LINE+1]], scope:
}
Index: test/CodeGen/debug-info-scope.c
===================================================================
--- test/CodeGen/debug-info-scope.c
+++ test/CodeGen/debug-info-scope.c
@@ -1,16 +1,13 @@
-// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=limited -emit-llvm < %s | FileCheck %s
-// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=line-tables-only -emit-llvm < %s | FileCheck --check-prefix=GMLT %s
+// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=limited -disable-llvm-passes -emit-llvm < %s | FileCheck %s
+// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=line-tables-only -disable-llvm-passes -emit-llvm < %s | FileCheck --check-prefix=GMLT %s
// Two variables with same name in separate scope.
// Radar 8330217.
int main() {
int j = 0;
int k = 0;
// CHECK: !DILocalVariable(name: "i"
// CHECK-NEXT: !DILexicalBlock(
-// GMLT-NOT: !DILexicalBlock
-// GMLT: !DILexicalBlockFile({{.*}}, discriminator: 1)
-// GMLT: !DILexicalBlockFile({{.*}}, discriminator: 2)
// Make sure we don't have any more lexical blocks because we don't need them in
// -gmlt.
// GMLT-NOT: !DILexicalBlock
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14848.40791.patch
Type: text/x-patch
Size: 2406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151120/627efb81/attachment.bin>
More information about the llvm-commits
mailing list