[llvm] r330265 - Fix macosx build broken by r330249
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 08:23:21 PDT 2018
Author: labath
Date: Wed Apr 18 08:23:21 2018
New Revision: 330265
URL: http://llvm.org/viewvc/llvm-project?rev=330265&view=rev
Log:
Fix macosx build broken by r330249
It seems llc crashes when targetting darwin with split-dwarf (pr37164).
This happens on all inputs, not just the one I added in the above
commit. Work around the issue by hardcoding the target triple to linux,
which is what all split-dwarf tests seem to be doing.
As I don't know of a way to specify the os part of the triple without
spelling out the architecture as well, I move the new test to the X86
folder.
Added:
llvm/trunk/test/DebugInfo/X86/debug-names-split-dwarf.ll
- copied, changed from r330263, llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll
Modified:
llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll
Modified: llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll?rev=330265&r1=330264&r2=330265&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll Wed Apr 18 08:23:21 2018
@@ -3,10 +3,6 @@
; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
-; Now try the same with split dwarf.
-; RUN: %llc_dwarf -split-dwarf-file=foo.dwo -accel-tables=Dwarf -filetype=obj -o %t < %s
-; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
-
; Check the header
; CHECK: CU count: 1
; CHECK: Local TU count: 0
Copied: llvm/trunk/test/DebugInfo/X86/debug-names-split-dwarf.ll (from r330263, llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/debug-names-split-dwarf.ll?p2=llvm/trunk/test/DebugInfo/X86/debug-names-split-dwarf.ll&p1=llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll&r1=330263&r2=330265&rev=330265&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/debug-names-one-cu.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/debug-names-split-dwarf.ll Wed Apr 18 08:23:21 2018
@@ -1,11 +1,9 @@
; REQUIRES: object-emission
-; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s
-; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
-; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
-
-; Now try the same with split dwarf.
-; RUN: %llc_dwarf -split-dwarf-file=foo.dwo -accel-tables=Dwarf -filetype=obj -o %t < %s
-; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
+
+; Verify that DWARF v5 accelerator tables work with split-dwarf.
+; RUN: %llc_dwarf -mtriple x86_64-pc-linux -split-dwarf-file=foo.dwo \
+; RUN: -accel-tables=Dwarf -filetype=obj -o %t < %s
+; RUN: llvm-dwarfdump -debug-names - <%t | FileCheck %s
; Check the header
; CHECK: CU count: 1
@@ -24,8 +22,6 @@
; CHECK-NEXT: Tag: DW_TAG_variable
; CHECK-NEXT: DW_IDX_die_offset: 0x{{[0-9a-f]*}}
-; VERIFY: No errors.
-
@foobar = common dso_local global i8* null, align 8, !dbg !0
!llvm.dbg.cu = !{!2}
More information about the llvm-commits
mailing list