1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00
serenity/Userland/Libraries/LibJIT/Assembler.h
Nikodem Rabuliński 8aa35f4fab LibJIT+LibJS: Rename Assembler to X86_64Assembler
This is in preparation for making LibJIT support multiple architectures.
Assembler will now be typedefed to the specific assembler
for a particular architecture.
Additionally, there's now JIT_ARCH_SUPPORTED which is defined on
architectures which LibJIT supports.
2023-11-06 10:05:42 +01:00

18 lines
310 B
C++

/*
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJIT/X86_64/Assembler.h>
namespace JIT {
#if ARCH(X86_64)
# define JIT_ARCH_SUPPORTED 1
typedef X86_64Assembler Assembler;
#else
# undef JIT_ARCH_SUPPORTED
#endif
}