diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 985599022..3a180027a 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4159,6 +4159,18 @@ void EndToEndCompileRequest::setDumpIntermediates(int enable) } } +void EndToEndCompileRequest::setTrackLiveness(bool v) +{ + enableLivenessTracking = v; + + // Change all existing targets to use the new setting. + auto linkage = getLinkage(); + for (auto& target : linkage->targets) + { + target->setTrackLiveness(v); + } +} + void EndToEndCompileRequest::setDumpIntermediatePrefix(const char* prefix) { m_dumpIntermediatePrefix = prefix; |
