aco: Stub sections that don't have _WIN32 support

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7785>
This commit is contained in:
James Park 2020-11-26 22:09:15 -08:00 committed by Marge Bot
parent 2c3fd34103
commit 44f05d6b74
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,9 @@ namespace {
bool print_asm_gfx6_gfx7(Program *program, std::vector<uint32_t>& binary,
FILE *output)
{
#ifdef _WIN32
return true;
#else
char path[] = "/tmp/fileXXXXXX";
char line[2048], command[128];
const char *gpu_type;
@ -90,6 +93,7 @@ fail:
close(fd);
unlink(path);
return true;
#endif
}
std::pair<bool, size_t> disasm_instr(chip_class chip, LLVMDisasmContextRef disasm,