Introduce a Lit feature "debug_frame" and apply it to llvm/test/MC/ELF/cfi-version.ll.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Jun 2014 12:35:39 +0000 (12:35 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Jun 2014 12:35:39 +0000 (12:35 +0000)
.debug_frame is not emitted for targeting Windows x64.

llvm-svn: 211466

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

index 0588fcd..10daa1d 100644 (file)
@@ -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:
index cae708b..4ee3f6e 100644 (file)
@@ -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: