|
25 | 25 | #include "clang/Sema/SemaHLSL.h" |
26 | 26 | #include "llvm/Bitcode/ReaderWriter.h" |
27 | 27 | #include "llvm/IR/LLVMContext.h" |
28 | | -#include "llvm/IR/LegacyPassManager.h" |
29 | 28 | #include "llvm/Support/TimeProfiler.h" |
30 | 29 | #include "llvm/Support/Timer.h" |
31 | 30 | #include "llvm/Transforms/Utils/Cloning.h" |
|
35 | 34 | #include "dxc/DxcBindingTable/DxcBindingTable.h" |
36 | 35 | #include "dxc/DxilContainer/DxilContainerAssembler.h" |
37 | 36 | #include "dxc/DxilRootSignature/DxilRootSignature.h" |
38 | | -#include "dxc/HLSL/DxilGenerationPass.h" |
39 | 37 | #include "dxc/HLSL/HLSLExtensionsCodegenHelper.h" |
40 | 38 | #include "dxc/Support/Path.h" |
41 | 39 | #include "dxc/Support/WinIncludes.h" |
@@ -1050,12 +1048,6 @@ class DxcCompiler : public IDxcCompiler3, |
1050 | 1048 |
|
1051 | 1049 | inputs.pVersionInfo = static_cast<IDxcVersionInfo *>(this); |
1052 | 1050 |
|
1053 | | - if (opts.StripDebug) { |
1054 | | - legacy::PassManager PM; |
1055 | | - PM.add(createDxilStripDebugSensitiveInfoPass()); |
1056 | | - PM.run(*inputs.pM); |
1057 | | - } |
1058 | | - |
1059 | 1051 | if (needsValidation) { |
1060 | 1052 | valHR = dxcutil::ValidateAndAssembleToContainer(inputs); |
1061 | 1053 | } else { |
@@ -1616,6 +1608,7 @@ class DxcCompiler : public IDxcCompiler3, |
1616 | 1608 | Opts.EnableLifetimeMarkers; |
1617 | 1609 | compiler.getCodeGenOpts().HLSLEnablePayloadAccessQualifiers = |
1618 | 1610 | Opts.EnablePayloadQualifiers; |
| 1611 | + compiler.getCodeGenOpts().StripDebug = Opts.StripDebug; |
1619 | 1612 |
|
1620 | 1613 | // Translate signature packing options |
1621 | 1614 | if (Opts.PackPrefixStable) |
|
0 commit comments