[flang-commits] [flang] [flang][debug] Support allocatables. (PR #95557)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 17 00:47:05 PDT 2024


================
@@ -190,6 +192,28 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
       /* associated */ nullptr);
 }
 
+mlir::LLVM::DITypeAttr DebugTypeGenerator::convertPointerLikeType(
+    mlir::Type elTy, mlir::LLVM::DIFileAttr fileAttr,
+    mlir::LLVM::DIScopeAttr scope, mlir::Location loc, bool genAllocated,
+    bool genAssociated) {
+  mlir::MLIRContext *context = module.getContext();
+
+  // Arrays and character need different treatment because DWARF have special
----------------
jeanPerier wrote:

You mention character as a special case here, but the condition just below is only checking for arrays. How are characters handled?

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


More information about the flang-commits mailing list