mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 00:40:14 +00:00
Define Disassemble only when Effcee is used in fold_test
This commit is contained in:
parent
a942ff40f5
commit
6cd6e5ebef
@ -36,6 +36,7 @@ using ::testing::Contains;
|
||||
using namespace spvtools;
|
||||
using spvtools::opt::analysis::DefUseManager;
|
||||
|
||||
#ifdef SPIRV_EFFCEE
|
||||
std::string Disassemble(const std::string& original, ir::IRContext* context,
|
||||
uint32_t disassemble_options = 0) {
|
||||
std::vector<uint32_t> optimized_bin;
|
||||
@ -50,7 +51,6 @@ std::string Disassemble(const std::string& original, ir::IRContext* context,
|
||||
return optimized_asm;
|
||||
}
|
||||
|
||||
#ifdef SPIRV_EFFCEE
|
||||
void Match(const std::string& original, ir::IRContext* context,
|
||||
uint32_t disassemble_options = 0) {
|
||||
std::string disassembly = Disassemble(original, context, disassemble_options);
|
||||
|
Loading…
Reference in New Issue
Block a user