From 245466d89cfe54b78da486f06d470bc6daaf4625 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 16 Feb 2023 16:44:04 -0800 Subject: Remove `SharedIRBuilder`. (#2657) Co-authored-by: Yong He --- source/slang/slang-ir-dll-export.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/slang/slang-ir-dll-export.cpp') diff --git a/source/slang/slang-ir-dll-export.cpp b/source/slang/slang-ir-dll-export.cpp index a8b464b43..d7a18e665 100644 --- a/source/slang/slang-ir-dll-export.cpp +++ b/source/slang/slang-ir-dll-export.cpp @@ -13,13 +13,11 @@ struct DllExportContext IRModule* module; DiagnosticSink* diagnosticSink; - SharedIRBuilder sharedBuilder; - void processFunc(IRFunc* func, IRDllExportDecoration* dllExportDecoration) { NativeCallMarshallingContext marshalContext; marshalContext.diagnosticSink = diagnosticSink; - IRBuilder builder(sharedBuilder); + IRBuilder builder(module); auto wrapper = marshalContext.generateDLLExportWrapperFunc(builder, func); dllExportDecoration->removeFromParent(); dllExportDecoration->insertAtStart(wrapper); @@ -65,7 +63,6 @@ void generateDllExportFuncs(IRModule* module, DiagnosticSink* sink) DllExportContext context; context.module = module; context.diagnosticSink = sink; - context.sharedBuilder.init(module); return context.processModule(); } -- cgit v1.2.3