[flang-commits] [flang] [flang][debug] Emit debug info for named constants (PR #213974)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Thu Aug 6 04:22:32 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:

It's a nit, so whatever you prefer. :-)

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


More information about the flang-commits mailing list