[llvm] [DWARF] Generalize DWARFTypePrinter to a template class (PR #109459)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 16:11:39 PDT 2024
================
@@ -9,19 +9,66 @@
#ifndef LLVM_DEBUGINFO_DWARF_DWARFTYPEPRINTER_H
#define LLVM_DEBUGINFO_DWARF_DWARFTYPEPRINTER_H
+#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Dwarf.h"
-#include "llvm/DebugInfo/DWARF/DWARFDie.h"
+#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
#include <string>
namespace llvm {
class raw_ostream;
+inline std::optional<uint64_t> getLanguage(DWARFDie D) {
----------------
dwblaikie wrote:
looks like `getLanguage` and `detail::toString` aren't used at this point, so should be omitted?
https://github.com/llvm/llvm-project/pull/109459
More information about the llvm-commits
mailing list