diff options
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rwxr-xr-x | source/slang/slang-compiler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index d8da642f4..3855eda68 100755 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -2357,6 +2357,13 @@ SlangResult dissassembleDXILUsingDXC( { options.optionFlags |= SerialOptionFlag::DebugInfo; } + if (linkage->m_obfuscateCode) + { + // If code is obfuscated, we *disable* AST output as it is not obfuscated and will reveal + // too much about IR. + // Also currently only IR is needed. + options.optionFlags &= ~SerialOptionFlag::ASTModule; + } { RiffContainer container; |
