From a2d90fb275962da84611160f8ddd74d934a68dbd Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 4 Aug 2023 15:47:39 -0700 Subject: Redesign `DeclRef` and systematic `Val` deduplication (#3049) * Redesign DeclRef + Deduplicate Val. * Update project files * Fix warning. * Fix. * Fix. * Remove `Val::_equalsImplOverride`. * Rmove `Val::_getHashCodeOverride`. * Remove `semanticVisitor` param from `resolve`. * Cleanups. --------- Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 8f4d68a75..343c18916 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -54,7 +54,6 @@ #include "slang-ir-strip-cached-dict.h" #include "slang-ir-strip-witness-tables.h" #include "slang-ir-synthesize-active-mask.h" -#include "slang-ir-union.h" #include "slang-ir-validate.h" #include "slang-ir-wrap-structured-buffers.h" #include "slang-ir-liveness.h" @@ -347,10 +346,6 @@ Result linkAndOptimizeIR( // Lower `Result` types into ordinary struct types. lowerResultType(irModule, sink); - // Desguar any union types, since these will be illegal on - // various targets. - // - desugarUnionTypes(irModule); #if 0 dumpIRIfEnabled(codeGenContext, irModule, "UNIONS DESUGARED"); #endif -- cgit v1.2.3