From 1301f6bc85f4005a548a5a63601689616d511d0b Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Tue, 7 Jul 2020 11:57:56 -0400 Subject: Multiple Entry Point Cleanup (#1427) * Multiple Entry Point Cleanup This commit provides some in-code cleanup of the previous multiple entry point PR (#1411). Specifically, this PR provides refactoring of multiple entry point functions into helper functions, the removal of the EntryPointAndIndex struct, and various stylistic improvements. * Minor updates Co-authored-by: Tim Foley --- source/slang/slang-emit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index a93427e29..f824ac50f 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -617,14 +617,13 @@ SlangResult emitEntryPointSourceFromIR( TargetRequest* targetRequest, SourceResult& outSource) { - // Temporary assertion for checkpoint - SLANG_ASSERT(entryPointIndices.getCount() == 1); outSource.reset(); auto sink = compileRequest->getSink(); auto program = compileRequest->getProgram(); - // TODO(DG): Update from assertion + // Temporary assertion for checkpoint + SLANG_ASSERT(entryPointIndices.getCount() == 1); auto entryPoint = program->getEntryPoint(entryPointIndices[0]); auto lineDirectiveMode = compileRequest->getLineDirectiveMode(); -- cgit v1.2.3