From 5758d16612eda0f902d7d4c02535afe44dec2ac2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 15 Jul 2020 12:48:56 -0700 Subject: IR pass to generate witness table wrappers. (#1443) * Refactor lower-generics pass into separate subpasses. * IR pass to generate witness table wrappers. * Re-generate vs project files. * Fix x86 build error. --- source/slang/slang-emit-cpp.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source/slang/slang-emit-cpp.h') diff --git a/source/slang/slang-emit-cpp.h b/source/slang/slang-emit-cpp.h index 29d6e215e..e12493b5a 100644 --- a/source/slang/slang-emit-cpp.h +++ b/source/slang/slang-emit-cpp.h @@ -106,10 +106,6 @@ protected: UnownedStringSlice _getFuncName(const HLSLIntrinsic* specOp); - // Returns a StringSlice representing the mangled name of a witness table - // wrapper function. - UnownedStringSlice _getWitnessTableWrapperFuncName(IRFunc* func); - UnownedStringSlice _getTypeName(IRType* type); SlangResult _calcCPPTextureTypeName(IRTextureTypeBase* texType, StringBuilder& outName); @@ -127,19 +123,12 @@ protected: // of all the witness table objects in `pendingWitnessTableDefinitions`. void _emitWitnessTableDefinitions(); - // Emit wrapper functions that are referenced in witness tables. - // Wrapper functions wraps the actual member function, and takes a `void*` - // as the `this` parameter instead of the actual object type, so that - // their signature is agnostic to the object type. - void _emitWitnessTableWrappers(); - HLSLIntrinsic* _addIntrinsic(HLSLIntrinsic::Op op, IRType* returnType, IRType*const* argTypes, Index argTypeCount); static bool _isVariable(IROp op); Dictionary m_typeNameMap; Dictionary m_intrinsicNameMap; - Dictionary m_witnessTableWrapperFuncNameMap; IRTypeSet m_typeSet; -- cgit v1.2.3