[flang-commits] [flang] [flang][debug] Emit debug info for named constants (PR #213974)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Wed Aug 5 08:06:42 PDT 2026
================
@@ -179,11 +179,22 @@ mlir::StringAttr getTargetFunctionName(mlir::MLIRContext *context,
} // namespace
-// Check if a global represents a module variable
-static bool isModuleVariable(fir::GlobalOp globalOp) {
+// Check if a name is that of a data object, which in Fortran is a variable or
+// a named constant.
+static bool isDataObjectName(fir::NameUniquer::NameKind kind) {
----------------
eugeneepshteyn wrote:
Nit: perhaps `static inline` for small helpers?
https://github.com/llvm/llvm-project/pull/213974
More information about the flang-commits
mailing list