| 650 | } |
| 651 | |
| 652 | void InstructionDisassembler::EmitHeaderGenerator(uint32_t generator) { |
| 653 | const char* generator_tool = |
| 654 | spvGeneratorStr(SPV_GENERATOR_TOOL_PART(generator)); |
| 655 | stream_ << "; Generator: " << generator_tool; |
| 656 | // For unknown tools, print the numeric tool value. |
| 657 | if (0 == strcmp("Unknown", generator_tool)) { |
| 658 | stream_ << "(" << SPV_GENERATOR_TOOL_PART(generator) << ")"; |
| 659 | } |
| 660 | // Print the miscellaneous part of the generator word on the same |
| 661 | // line as the tool name. |
| 662 | stream_ << "; " << SPV_GENERATOR_MISC_PART(generator) << "\n"; |
| 663 | } |
| 664 | |
| 665 | void InstructionDisassembler::EmitHeaderIdBound(uint32_t id_bound) { |
| 666 | stream_ << "; Bound: " << id_bound << "\n"; |
no test coverage detected