[Mlir-commits] [clang] [flang] [llvm] [mlir] [LLVM-Flang] Add support for -fdebug-info-for-profiling option (PR #188022)

Tarun Prabhu llvmlistbot at llvm.org
Wed Mar 25 05:26:01 PDT 2026


================
@@ -0,0 +1,36 @@
+! Test to check the option "-fdebug-info-for-profiling".
+
+!RUN: %flang -### -fdebug-info-for-profiling %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEBUG-INFO
+!RUN: %flang -### -fdebug-info-for-profiling -fno-debug-info-for-profiling -fdebug-info-for-profiling %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEBUG-INFO
+! RUN: %flang -S -emit-llvm -fdebug-info-for-profiling -g -o - %s | FileCheck %s
----------------
tarunprabhu wrote:

Does this do what you need? If not, you can just leave the invocation of the driver.

`%flang_fc1 -emit-llvm -debug-info-kind=standalone`

https://github.com/llvm/llvm-project/pull/188022


More information about the Mlir-commits mailing list