summaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/arc-linetable.m
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2015-11-20 18:29:01 +0000
committerDehao Chen <dehao@google.com>2015-11-20 18:29:01 +0000
commitcdf86baa9b7198b6a405d2d6ac88b4c14485860a (patch)
tree53e69c3fc5fc75f637bc813dd337d2034b4219f5 /test/CodeGenObjC/arc-linetable.m
parentda953be48862a0239e71e60d68a528a3147aa523 (diff)
downloadclang-cdf86baa9b7198b6a405d2d6ac88b4c14485860a.tar.gz
Add -disable-llvm-passes for frontend debug info tests.
Summary: The frontend debuginfo tests should not invoke llvm passes which includes add-discriminators that will change the debug info generated by FE. Reviewers: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14848 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/arc-linetable.m')
-rw-r--r--test/CodeGenObjC/arc-linetable.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/CodeGenObjC/arc-linetable.m b/test/CodeGenObjC/arc-linetable.m
index 22ab1d7688..877dfdc122 100644
--- a/test/CodeGenObjC/arc-linetable.m
+++ b/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 @@ typedef signed char BOOL;
[delegate testVoid :s];
}
}
- // CHECK: ![[STORE8]] = !DILocation(line: [[@LINE+3]], scope:
- // CHECK: ![[ARC8]] = !DILocation(line: [[@LINE+2]], scope:
// CHECK: ![[RET8]] = !DILocation(line: [[@LINE+1]], scope:
}