From 9566e8af25f87ad034a984db9d847942e454a180 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 25 Jul 2022 10:08:28 -0700 Subject: Allow `class` to implement COM interface, [DLLExport] (#2338) * Allow `class` to implement COM interface, [DLLExport] * Fix [COM] usage in tests and examples with UUIDs. Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 9b7fcfa38..1ded8668f 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -9,6 +9,7 @@ #include "slang-ir-byte-address-legalize.h" #include "slang-ir-collect-global-uniforms.h" #include "slang-ir-dce.h" +#include "slang-ir-dll-export.h" #include "slang-ir-dll-import.h" #include "slang-ir-eliminate-phis.h" #include "slang-ir-entry-point-uniforms.h" @@ -211,6 +212,7 @@ Result linkAndOptimizeIR( { lowerComInterfaces(irModule, artifactDesc.style, sink); generateDllImportFuncs(irModule, sink); + generateDllExportFuncs(irModule, sink); break; } default: break; -- cgit v1.2.3