mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
Improved x86::Compiler to use x86::Builder::finalize() instead using its own.
This commit is contained in:
@@ -95,7 +95,7 @@ namespace asmjit {
|
||||
//! Disables instruction validation API.
|
||||
#define ASMJIT_NO_VALIDATION
|
||||
|
||||
//! Disables instruction introspection API,
|
||||
//! Disables instruction introspection API.
|
||||
#define ASMJIT_NO_INTROSPECTION
|
||||
|
||||
// Avoid doxygen preprocessor using feature-selection definitions.
|
||||
|
||||
@@ -40,16 +40,6 @@ Compiler::Compiler(CodeHolder* code) noexcept : BaseCompiler() {
|
||||
}
|
||||
Compiler::~Compiler() noexcept {}
|
||||
|
||||
// ============================================================================
|
||||
// [asmjit::x86::Compiler - Finalize]
|
||||
// ============================================================================
|
||||
|
||||
Error Compiler::finalize() {
|
||||
ASMJIT_PROPAGATE(runPasses());
|
||||
Assembler a(_code);
|
||||
return serialize(&a);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// [asmjit::x86::Compiler - Events]
|
||||
// ============================================================================
|
||||
|
||||
@@ -698,13 +698,6 @@ public:
|
||||
|
||||
//! \}
|
||||
|
||||
//! \name Finalize
|
||||
//! \{
|
||||
|
||||
ASMJIT_API Error finalize() override;
|
||||
|
||||
//! \}
|
||||
|
||||
//! \name Events
|
||||
//! \{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user