diff options
author | Nathan Gauër <brioche@google.com> | 2022-08-09 21:10:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 21:10:36 +0300 |
commit | 0ebcdc4d19de627023d538826672c816e3e90f32 (patch) | |
tree | 2154d0173b3cca5e04d1f5fb96c7683148d29c03 | |
parent | ed3b9c83b178a0cc8b2447efc09c02ecd06a90a0 (diff) |
Allow spirv-opt print-all to show pretty IDs (#4888)
Disassembler was called with non-default params, loosing FRIENDLY_NAMES.
This commit changes the call options to allow the spirv-opt to show
friendly names instead of raw-ids. Might be more helpful when reading
the SPIRV-opt output.
Fixes #4882
Signed-off-by: Nathan Gauër <brioche@google.com>
-rw-r--r-- | source/opt/pass_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/opt/pass_manager.cpp b/source/opt/pass_manager.cpp index a73ff7cf4..d3c47e7f3 100644 --- a/source/opt/pass_manager.cpp +++ b/source/opt/pass_manager.cpp @@ -39,7 +39,7 @@ Pass::Status PassManager::Run(IRContext* context) { t.SetMessageConsumer(consumer()); std::string disassembly; std::string pass_name = (pass ? pass->name() : ""); - if (!t.Disassemble(binary, &disassembly, 0)) { + if (!t.Disassemble(binary, &disassembly)) { std::string msg = "Disassembly failed before pass "; msg += pass_name + "\n"; spv_position_t null_pos{0, 0, 0}; |