diff options
| author | Dietrich Geisler <dag368@cornell.edu> | 2020-12-18 10:10:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 09:10:10 -0800 |
| commit | f5fffa90e936ab462b3842f9b2cfa996ae870fe4 (patch) | |
| tree | 4c199062c18975d6de680c1b69fba9e149ca27e7 /source/slang/slang-emit-c-like.cpp | |
| parent | 0fa3bcffc7065927b18d1da2de722d1cb1b53ebf (diff) | |
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 <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<EmitAction> 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<EmitAction> actions; computeEmitActions(module, actions); |
