[flang-commits] [flang] 10e3ed9 - [Flang][Debug] NFC: Correct the REQUIRES line to use system-linux

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Wed Jun 21 04:11:23 PDT 2023


Author: Kiran Chandramohan
Date: 2023-06-21T12:11:03+01:00
New Revision: 10e3ed9919ffb68d5938ccd83414b766279ace03

URL: https://github.com/llvm/llvm-project/commit/10e3ed9919ffb68d5938ccd83414b766279ace03
DIFF: https://github.com/llvm/llvm-project/commit/10e3ed9919ffb68d5938ccd83414b766279ace03.diff

LOG: [Flang][Debug] NFC: Correct the REQUIRES line to use system-linux

Reviewed By: kkwli0

Differential Revision: https://reviews.llvm.org/D153126

Added: 
    

Modified: 
    flang/test/Lower/module-debug-file-loc-linux.f90
    flang/test/Transforms/debug-line-table-existing.fir
    flang/test/Transforms/debug-line-table-inc-file.fir
    flang/test/Transforms/debug-line-table-inc-same-file.fir

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/module-debug-file-loc-linux.f90 b/flang/test/Lower/module-debug-file-loc-linux.f90
index 4f773017096d0..4419c7672e209 100644
--- a/flang/test/Lower/module-debug-file-loc-linux.f90
+++ b/flang/test/Lower/module-debug-file-loc-linux.f90
@@ -2,7 +2,7 @@
 
 ! RUN: %flang_fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - %s | FileCheck %s
 
-! REQUIRES: linux
+! REQUIRES: system-linux
 
 subroutine sb1()
 end subroutine

diff  --git a/flang/test/Transforms/debug-line-table-existing.fir b/flang/test/Transforms/debug-line-table-existing.fir
index bb9b92fb7da62..3585ef9ee2c43 100644
--- a/flang/test/Transforms/debug-line-table-existing.fir
+++ b/flang/test/Transforms/debug-line-table-existing.fir
@@ -1,9 +1,9 @@
 
 // RUN: fir-opt --add-debug-foundation --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: linux
+// REQUIRES: system-linux
 
 // Test that there are no changes to a function with existed fused loc debug
-module {
+module attributes {} {
   func.func @_QPs1() {
     return loc(#loc1)
   } loc(#loc2)
@@ -17,11 +17,6 @@ module {
 #di_subprogram = #llvm.di_subprogram<compileUnit = #di_compile_unit, scope = #di_file, name = "_QPs1", linkageName = "_QPs1", file = #di_file, line = 1, scopeLine = 1, subprogramFlags = Definition, type = #di_subroutine_type>
 #loc2 = loc(fused<#di_subprogram>[#loc1])
 
-module {
-  func.func @_QPs1() {
-    return loc(#loc1)
-  } loc(#loc2)
-} loc(#loc)
 // CHECK: #loc = loc("/home/user01/llvm-project/build_release/simple.f90":0:0)
 // CHECK: #loc1 = loc("/home/user01/llvm-project/build_release/simple.f90":1:1)
 // CHECK: #di_subprogram = #llvm.di_subprogram<compileUnit = #di_compile_unit, scope = #di_file, name = "_QPs1", linkageName = "_QPs1", file = #di_file, line = 1, scopeLine = 1, subprogramFlags = Definition, type = #di_subroutine_type>

diff  --git a/flang/test/Transforms/debug-line-table-inc-file.fir b/flang/test/Transforms/debug-line-table-inc-file.fir
index 09b1e878dee25..5fdc384e0bdb0 100644
--- a/flang/test/Transforms/debug-line-table-inc-file.fir
+++ b/flang/test/Transforms/debug-line-table-inc-file.fir
@@ -1,6 +1,6 @@
 
 // RUN: fir-opt --add-debug-foundation --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: linux
+// REQUIRES: system-linux
 
 // Test for included functions that have a 
diff erent debug location than the current file
 module attributes {} {

diff  --git a/flang/test/Transforms/debug-line-table-inc-same-file.fir b/flang/test/Transforms/debug-line-table-inc-same-file.fir
index 9dce9f118f67f..3ca00e68768c5 100644
--- a/flang/test/Transforms/debug-line-table-inc-same-file.fir
+++ b/flang/test/Transforms/debug-line-table-inc-same-file.fir
@@ -1,6 +1,6 @@
 
 // RUN: fir-opt --add-debug-foundation --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: linux
+// REQUIRES: system-linux
 
 // Test that there is only one FileAttribute generated for multiple functions
 // in the same file.


        


More information about the flang-commits mailing list