[llvm] r211466 - Introduce a Lit feature "debug_frame" and apply it to llvm/test/MC/ELF/cfi-version.ll.

NAKAMURA Takumi geek4civic at gmail.com
Sun Jun 22 05:35:40 PDT 2014


Author: chapuni
Date: Sun Jun 22 07:35:39 2014
New Revision: 211466

URL: http://llvm.org/viewvc/llvm-project?rev=211466&view=rev
Log:
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.

Modified:
    llvm/trunk/test/MC/ELF/cfi-version.ll
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/MC/ELF/cfi-version.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/cfi-version.ll?rev=211466&r1=211465&r2=211466&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/cfi-version.ll (original)
+++ llvm/trunk/test/MC/ELF/cfi-version.ll Sun Jun 22 07:35:39 2014
@@ -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:

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=211466&r1=211465&r2=211466&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Sun Jun 22 07:35:39 2014
@@ -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:





More information about the llvm-commits mailing list