[clang] [flang] [llvm] [mlir] [LLVM-Flang] Add support for -fdebug-info-for-profiling option (PR #188022)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 24 07:20:30 PDT 2026
================
@@ -0,0 +1,34 @@
+! 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 2>&1 | FileCheck %s
+!RUN: %flang -### -fdebug-info-for-profiling -fno-debug-info-for-profiling %s 2>&1 | FileCheck %s
----------------
tarunprabhu wrote:
In both cases here, it may be better to add an explicit prefix such as `NO-DEBUG-INFO`. It is not immediately obvious that this is checking for the absence of the `-fdebug-info-for-profiling`. What do you think?
If you agree, you could also change `CHECK-DEBUG-INFO` to `DEBUG-INFO` since the `CHECK-` is not really needed.
https://github.com/llvm/llvm-project/pull/188022
More information about the cfe-commits
mailing list