Files
clang-p2996/flang/test/Transforms/debug-line-table-inc-same-file.fir
Sergio Afonso 4923cffc1d [Flang] Add missing dependency to AddDebugInfo pass (#139099)
The `AddDebugInfo` pass currently has a dependency on the `DLTI` MLIR
dialect caused by a call to the `fir::support::getOrSetMLIRDataLayout()`
utility function.

This dependency is not captured in the pass definition. This patch adds
the dependency and simplifies several unit tests that had to explicitly
use the `DLTI` dialect to prevent the missing dependency from causing
compiler failures.
2025-05-09 12:19:53 +01:00

24 lines
716 B
Plaintext

// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
// REQUIRES: system-linux
// Test that there is only one FileAttribute generated for multiple functions
// in the same file.
module {
func.func @_QPs1() {
return loc(#loc2)
} loc(#loc1)
func.func @_QPs2() {
return loc(#loc2)
} loc(#loc1)
func.func @_QQmain() {
return loc(#loc3)
} loc(#loc1)
} loc(#loc)
#loc = loc("/home/user01/llvm-project/build_release/simple.f90":0:0)
#loc1 = loc("/home/user01/llvm-project/build_release/simple.f90":1:1)
#loc2 = loc("/home/user01/llvm-project/build_release/simple.f90":2:1)
#loc3 = loc("/home/user01/llvm-project/build_release/simple.f90":3:1)
// CHECK-COUNT-1: #llvm.di_file