diff options
Diffstat (limited to 'source/slang/slang-mangle.cpp')
| -rw-r--r-- | source/slang/slang-mangle.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp index b27a45484..6a3a17caa 100644 --- a/source/slang/slang-mangle.cpp +++ b/source/slang/slang-mangle.cpp @@ -251,6 +251,15 @@ namespace Slang for(Index i = 0; i < n; ++i) emitType(context, tupleType->getMember(i)); } + else if (auto modifiedType = dynamicCast<ModifiedType>(type)) + { + emitRaw(context, "Tm"); + emitType(context, modifiedType->getBase()); + auto n = modifiedType->getModifierCount(); + emit(context, n); + for (Index i = 0; i < n; ++i) + emitVal(context, modifiedType->getModifier(i)); + } else { SLANG_UNEXPECTED("unimplemented case in type mangling"); @@ -336,6 +345,10 @@ namespace Slang emitVal(context, typecastIntVal->getType()); emitVal(context, typecastIntVal->getBase()); } + else if (auto modifier = as<ModifierVal>(val)) + { + emitNameImpl(context, UnownedStringSlice(modifier->getClassInfo().m_name)); + } else { SLANG_UNEXPECTED("unimplemented case in val mangling"); |
