[Lldb-commits] [lldb] [lldb][Fortran] Add TypeSystemFortran files (PR #218016)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 7 03:37:33 PDT 2026
================
@@ -0,0 +1,81 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file implements the Fortran type system.
+///
+//===----------------------------------------------------------------------===//
+#include "TypeSystemFortran.h"
+
+#include "lldb/Core/PluginManager.h"
+#include "lldb/Symbol/SymbolFile.h"
+#include "lldb/Target/Target.h"
+
+using namespace lldb;
+using namespace lldb_private;
+using namespace llvm;
+using namespace lldb_private::plugin::dwarf;
+
+LLDB_PLUGIN_DEFINE(TypeSystemFortran)
+
+/// Used to determine if TypeSystem supports the language passed in
+/// CreateInstance
+static bool IsLanguageSupported(lldb::LanguageType language) {
+ if (language == lldb::LanguageType::eLanguageTypeFortran77 ||
----------------
DavidSpickett wrote:
See if there are ways to not have to spell out this list mutliple times. Either a static constexpr array in this file or if you can, calling some utility IsFortranLanguage from somewhere else.
https://github.com/llvm/llvm-project/pull/218016
More information about the lldb-commits
mailing list