summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-15 21:28:38 +0000
committerVedant Kumar <vsk@apple.com>2018-02-15 21:28:38 +0000
commit17d8bbac45622e3cc1daa96cbab3fb4ffc79b53a (patch)
tree3edccb8adfabe64b81919f6bdaf54a6afb1b79d2 /llvm/test/DebugInfo
parentb97ff922a9eeea6efbf12deba907848e5002cc76 (diff)
downloadbcm5719-llvm-17d8bbac45622e3cc1daa96cbab3fb4ffc79b53a.tar.gz
bcm5719-llvm-17d8bbac45622e3cc1daa96cbab3fb4ffc79b53a.zip
[Debugify] Don't check functions which were skipped
If no debug info was applied to a function, its debug info shouldn't be checked (it doesn't have any :). llvm-svn: 325297
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/debugify.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/debugify.ll b/llvm/test/DebugInfo/debugify.ll
index d506a20d200..9747c88def8 100644
--- a/llvm/test/DebugInfo/debugify.ll
+++ b/llvm/test/DebugInfo/debugify.ll
@@ -19,6 +19,8 @@
; RUN: opt -enable-debugify -strip -S -o - < %s | \
; RUN: FileCheck %s -check-prefix=CHECK-FAIL
+; RUN: opt -enable-debugify -S -o - < %s | FileCheck %s -check-prefix=PASS
+
; CHECK-LABEL: define void @foo
define void @foo() {
; CHECK: ret void, !dbg ![[RET1:.*]]
@@ -79,3 +81,5 @@ define weak_odr zeroext i1 @baz() {
; CHECK-FAIL: WARNING: Missing line 4
; CHECK-FAIL: ERROR: Missing variable 1
; CHECK-FAIL: CheckDebugify: FAIL
+
+; PASS: CheckDebugify: PASS
OpenPOWER on IntegriCloud