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

Billy Zhu via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 07:37:19 PDT 2024


================
@@ -56,10 +56,14 @@ DIBasicTypeAttr DebugImporter::translateImpl(llvm::DIBasicType *node) {
 DICompileUnitAttr DebugImporter::translateImpl(llvm::DICompileUnit *node) {
   std::optional<DIEmissionKind> emissionKind =
       symbolizeDIEmissionKind(node->getEmissionKind());
+  std::optional<DINameTableKind> nameTableKind = symbolizeDINameTableKind(
+      static_cast<
+          std::underlying_type_t<llvm::DICompileUnit::DebugNameTableKind>>(
----------------
zyx-billy wrote:

Yeah interestingly this NameTableKind is declared an `enum class`, whereas EmissionKind is just an `enum`.

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


More information about the flang-commits mailing list