================
@@ -0,0 +1,20 @@
+// Test the dwarf-debug-flags option will passed to MLIR correctly and show
+// up in the generated debug info.
+// RUN: fir-opt --add-debug-info="debug-level=Full" --mlir-print-debuginfo %s \
+// RUN: | FileCheck --check-prefix=CHECK-NO-FLAGS %s
+// RUN: fir-opt --add-debug-info="debug-level=Full
dwarf-debug-flags=\"-grecord-command-line -O2\"" \
+// RUN: --mlir-print-debuginfo %s | FileCheck --check-prefix=CHECK-FLAGS %s
+
+module {
+ func.func @_QPs() {
+ return loc(#loc_s)
+ } loc(#loc_s)
+} loc(#loc_module)
+#loc_module = loc("simple.f90":1:1)
+#loc_s = loc("simple.f90":2:1)
+
+// CHECK-NO-FLAGS: #llvm.di_compile_unit<
+// CHECK-NO-FLAGS-SAME: producer = "{{.*}}flang{{.*}}"
----------------
cyyself wrote:
Indeed. Maybe I should add some `-NOT`.
https://github.com/llvm/llvm-project/pull/181686
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits