summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorDietrich Geisler <dag368@cornell.edu>2020-07-07 11:57:56 -0400
committerGitHub <noreply@github.com>2020-07-07 08:57:56 -0700
commit1301f6bc85f4005a548a5a63601689616d511d0b (patch)
treef93d718131451e398fafbe732460eef46da7772c /source/slang/slang-emit.cpp
parentcf62f13cdc8a7f21c78f03b097bff6edf09fdead (diff)
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 <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp5
1 files changed, 2 insertions, 3 deletions
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();