From fe755c57f8958726b367253d8fe0c8bfb3404351 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 22 Jun 2014 12:35:39 +0000 Subject: [PATCH] Introduce a Lit feature "debug_frame" and apply it to llvm/test/MC/ELF/cfi-version.ll. .debug_frame is not emitted for targeting Windows x64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211466 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ELF/cfi-version.ll | 3 +++ test/lit.cfg | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/test/MC/ELF/cfi-version.ll b/test/MC/ELF/cfi-version.ll index 0588fcd45da..10daa1dd408 100644 --- a/test/MC/ELF/cfi-version.ll +++ b/test/MC/ELF/cfi-version.ll @@ -2,6 +2,9 @@ ; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34 ; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34 +; .debug_frame is not emitted for targeting Windows x64. +; REQUIRES: debug_frame + ; Function Attrs: nounwind define i32 @foo() #0 { entry: diff --git a/test/lit.cfg b/test/lit.cfg index cae708baf07..4ee3f6ead79 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -336,6 +336,10 @@ if 'darwin' == sys.platform: config.available_features.add('fma3') sysctl_cmd.wait() +# .debug_frame is not emitted for targeting Windows x64. +if not re.match(r'^x86_64.*-(mingw32|win32)', config.target_triple): + config.available_features.add('debug_frame') + # Check if we should use gmalloc. use_gmalloc_str = lit_config.params.get('use_gmalloc', None) if use_gmalloc_str is not None: -- 2.34.1