diff options
| author | Yong He <yonghe@outlook.com> | 2017-12-27 20:17:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-27 20:17:36 -0500 |
| commit | e370fe2984e7e260dc2d78d67b087e542d0102b0 (patch) | |
| tree | dd441836025e802f79e74646f8f280c7515cbaec /source/slang/mangle.cpp | |
| parent | 69242398be1ba76898c0d6541eec3b7ca0ec1ab4 (diff) | |
| parent | d55b56bc804f25d8390f1dc6b09ff9116ffcaf29 (diff) | |
Merge pull request #335 from csyonghe/master
Support nested generic types (e.g. L<T<S>>)
Diffstat (limited to 'source/slang/mangle.cpp')
| -rw-r--r-- | source/slang/mangle.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp index 0625a6f73..5b8e519b9 100644 --- a/source/slang/mangle.cpp +++ b/source/slang/mangle.cpp @@ -400,6 +400,17 @@ namespace Slang { return getMangledName(makeDeclRef(decl)); } + + String getMangledNameForConformanceWitness( + DeclRef<Decl> sub, + DeclRef<Decl> sup) + { + ManglingContext context; + emitRaw(&context, "_SW"); + emitQualifiedName(&context, sub); + emitQualifiedName(&context, sup); + return context.sb.ProduceString(); + } String getMangledNameForConformanceWitness( Type* sub, |
