Add object-emission flag for lit tests. This flag is used

to disable following tests for Hexagon that require direct object
generation support.

DebugInfo/dwarf-public-names.ll
DebugInfo/dwarf-version.ll
DebugInfo/member-pointers.ll
DebugInfo/namespace.ll
DebugInfo/two-cus-from-same-file.ll

Fixes bug 15616 - http://llvm.org/bugs/show_bug.cgi?id=15616




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jyotsna Verma 2013-04-10 19:53:26 +00:00
parent 4b924d3a61
commit f0ca9a8c94
6 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,7 @@
; REQUIRES: object-emission
; RUN: llc -generate-dwarf-pubnames -filetype=obj -o %t.o < %s
; RUN: llvm-dwarfdump -debug-dump=pubnames %t.o | FileCheck %s
; XFAIL: hexagon
; ModuleID = 'dwarf-public-names.cpp'
;
; Generated from:

View File

@ -1,3 +1,5 @@
; REQUIRES: object-emission
; RUN: llc -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s

View File

@ -1,3 +1,5 @@
; REQUIRES: object-emission
; RUN: llc -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
; CHECK: DW_TAG_ptr_to_member_type

View File

@ -1,3 +1,5 @@
; REQUIRES: object-emission
; RUN: llc -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s
; CHECK: debug_info contents

View File

@ -3,10 +3,11 @@
; blow llc up and produces something reasonable.
;
; REQUIRES: object-emission
; RUN: llc %s -o %t -filetype=obj -O0
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
; XFAIL: hexagon
; ModuleID = 'test.bc'
@str = private unnamed_addr constant [4 x i8] c"FOO\00"

View File

@ -273,6 +273,10 @@ if (config.llvm_use_sanitizer == "Memory" or
config.llvm_use_sanitizer == "MemoryWithOrigins"):
config.available_features.add("msan")
# Direct object generation
if not 'hexagon' in config.target_triple:
config.available_features.add("object-emission")
# llc knows whether he is compiled with -DNDEBUG.
import subprocess
try: