diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-11-07 13:51:46 -0500 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-11-07 10:51:46 -0800 |
| commit | 99c295477fa1f6c5ce47e0d1c8fb3eea9d5e5f98 (patch) | |
| tree | a546b873cb621eac61137b650b196a2a161815ad /source/slang/slang-emit.cpp | |
| parent | fedda2e5342d3bfbdbbdd3ca232b3f69fff81ef7 (diff) | |
* Removed strip pass from emit as no longer needed (#1114)
* If obfuscate is enabled do strip on Layout
* Add option to keep insts that have layout decoration (else DCE strips layout)
* Add NameHint back in lowering - as strip now correctly removes. We may want NameHints in some stages even with obfuscation (for error messages in IR passes), as long as they are removed appropriately at the end
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 670848002..345dfe9b2 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -474,15 +474,6 @@ String emitEntryPoint( break; } - // If we have obfuscation strip - if (compileRequest->getLinkage()->m_obfuscateCode) - { - IRStripOptions options; - options.shouldStripNameHints = true; - options.stripSourceLocs = true; - stripFrontEndOnlyInstructions(irModule, options); - } - // The resource-based specialization pass above // may create specialized versions of functions, but // it does not try to completely eliminate the original |
