summaryrefslogtreecommitdiffstats
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp11
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,