From f5fffa90e936ab462b3842f9b2cfa996ae870fe4 Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Fri, 18 Dec 2020 10:10:10 -0700 Subject: Heterogeneous Flag Error Visibility (#1642) * PR to fix issue #1638. This change introduces a diagnostic sink to the emitModule function, and updates all associated calls to that function. Additionally, this commit updates the heterogeneous hello world example to not need the entry and stage flags for simplicity. * Updated emit-cpp per suggested changes Co-authored-by: Tim Foley --- source/slang/slang-emit-c-like.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-emit-c-like.cpp') diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index eefa2363c..9d208b8a3 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -3892,13 +3892,15 @@ void CLikeSourceEmitter::executeEmitActions(List const& actions) } } -void CLikeSourceEmitter::emitModuleImpl(IRModule* module) +void CLikeSourceEmitter::emitModuleImpl(IRModule* module, DiagnosticSink* sink) { // The IR will usually come in an order that respects // dependencies between global declarations, but this // isn't guaranteed, so we need to be careful about // the order in which we emit things. + SLANG_UNUSED(sink); + List actions; computeEmitActions(module, actions); -- cgit v1.2.3