[llvm] r329555 - Make the test case from r329552 more portable

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 02:11:40 PDT 2018


Author: labath
Date: Mon Apr  9 02:11:40 2018
New Revision: 329555

URL: http://llvm.org/viewvc/llvm-project?rev=329555&view=rev
Log:
Make the test case from r329552 more portable

- when tuning for SCE debugger (default for ps4 targets), we will not emit
  the DW_AT_linkage_name, which this test needs. I explicitly set the
  debugger tuning parameter to get the attribute always.
- darwin targets did not like the "section .text.startup" fragment of
  the test. This is not actually needed for the test, so I remove it.

Modified:
    llvm/trunk/test/DebugInfo/Generic/debug-names-empty-name.ll

Modified: llvm/trunk/test/DebugInfo/Generic/debug-names-empty-name.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/debug-names-empty-name.ll?rev=329555&r1=329554&r2=329555&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/debug-names-empty-name.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/debug-names-empty-name.ll Mon Apr  9 02:11:40 2018
@@ -1,5 +1,5 @@
 ; REQUIRES: object-emission
-; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s
+; RUN: %llc_dwarf -debugger-tune=lldb -accel-tables=Dwarf -filetype=obj -o %t < %s
 ; RUN: llvm-dwarfdump -find=_GLOBAL__sub_I__ %t | FileCheck --check-prefix=INFO %s
 ; RUN: llvm-dwarfdump -debug-names %t | FileCheck --check-prefix=NAMES %s
 ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
@@ -18,7 +18,7 @@
 ; Verification should succeed.
 ; VERIFY: No errors.
 
-define internal void @_GLOBAL__sub_I__() section ".text.startup" !dbg !7 {
+define internal void @_GLOBAL__sub_I__() !dbg !7 {
 entry:
   ret void
 }




More information about the llvm-commits mailing list