[flang-commits] [flang] [mlir] [MLIR][LLVM] Add DebugNameTableKind to DICompileUnit (PR #87974)

Tobias Gysi via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 07:53:14 PDT 2024


================
@@ -350,8 +350,21 @@ def LLVM_DICompileUnitAttr : LLVM_Attr<"DICompileUnit", "di_compile_unit",
     "DIFileAttr":$file,
     OptionalParameter<"StringAttr">:$producer,
     "bool":$isOptimized,
-    "DIEmissionKind":$emissionKind
+    "DIEmissionKind":$emissionKind,
+    DefaultValuedParameter<
+      "DINameTableKind", "DINameTableKind::Default">:$nameTableKind
----------------
gysit wrote:

I thought `DINameTableKind::Default` is also omitted when printing an OptionalParameter since it is zero which is the default value. However, I may be wrong!

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


More information about the flang-commits mailing list