[Lldb-commits] [clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

Chris B via lldb-commits lldb-commits at lists.llvm.org
Sun Jul 7 13:18:44 PDT 2024


================
@@ -3428,6 +3428,12 @@ void CXXNameMangler::mangleType(const BuiltinType *T) {
     Out << 'u' << type_name.size() << type_name;                               \
     break;
 #include "clang/Basic/AMDGPUTypes.def"
+#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId)                            \
+  case BuiltinType::Id:                                                        \
+    type_name = #Name;                                                         \
+    Out << type_name.size() << type_name;                                      \
----------------
llvm-beanz wrote:

```suggestion
    Out << 'u' << type_name.size() << type_name;                               \
```

The `u` is significant here because it denotes a vendor-specific builtin type (see: https://itanium-cxx-abi.github.io/cxx-abi/abi-mangling.html).

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


More information about the lldb-commits mailing list