[llvm] r326491 - Add an llc testcase analogous to test/LTO/X86/strip-debug-info.ll

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 13:53:17 PST 2018


Author: adrian
Date: Thu Mar  1 13:53:17 2018
New Revision: 326491

URL: http://llvm.org/viewvc/llvm-project?rev=326491&view=rev
Log:
Add an llc testcase analogous to test/LTO/X86/strip-debug-info.ll

rdar://problem/37963669

Added:
    llvm/trunk/test/DebugInfo/X86/strip-broken-debuginfo.ll

Added: llvm/trunk/test/DebugInfo/X86/strip-broken-debuginfo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/strip-broken-debuginfo.ll?rev=326491&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/strip-broken-debuginfo.ll (added)
+++ llvm/trunk/test/DebugInfo/X86/strip-broken-debuginfo.ll Thu Mar  1 13:53:17 2018
@@ -0,0 +1,22 @@
+; RUN: llvm-as -disable-verify %s -o %t.bc
+; ---- Full LTO ---------------------------------------------
+; RUN: llc -filetype=asm -o - %t.bc 2>&1 | FileCheck %s
+; CHECK-NOT: Broken module found
+; CHECK: warning{{.*}} ignoring invalid debug info
+; CHECK-NOT: Broken module found
+; CHECK: foo
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.12"
+
+declare void @bar()
+
+define void @foo() {
+  call void @bar()
+  ret void
+}
+
+!llvm.module.flags = !{!0}
+!llvm.dbg.cu = !{!1}
+
+!0 = !{i32 2, !"Debug Info Version", i32 3}
+!1 = !DIFile(filename: "broken", directory: "")




More information about the llvm-commits mailing list