[llvm] [dsymutil] Fix ODR type uniquing for -gsimple-template-names (PR #194501)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 02:26:19 PDT 2026
================
@@ -11,9 +11,67 @@
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
+#include "llvm/Support/raw_ostream.h"
namespace llvm {
+static void appendTemplateParam(const DWARFDie &Param, raw_string_ostream &OS) {
----------------
Michael137 wrote:
Could we re-use `DWARFTypePrinter::appendAndTerminateTemplateParameters`?
This is how LLVM deals with the type-reconstruction:
https://github.com/llvm/llvm-project/blob/f409c264f2cd18d069a1cc627850f14ddcea914f/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h#L303-L330
Which I think covers exactly what you're trying to do
https://github.com/llvm/llvm-project/pull/194501
More information about the llvm-commits
mailing list