Improved x86::Compiler to use x86::Builder::finalize() instead using its own.

This commit is contained in:
kobalicek
2020-06-02 23:05:20 +02:00
parent 168f2c17bf
commit bd4f7c67e7
3 changed files with 1 additions and 18 deletions

View File

@@ -95,7 +95,7 @@ namespace asmjit {
//! Disables instruction validation API. //! Disables instruction validation API.
#define ASMJIT_NO_VALIDATION #define ASMJIT_NO_VALIDATION
//! Disables instruction introspection API, //! Disables instruction introspection API.
#define ASMJIT_NO_INTROSPECTION #define ASMJIT_NO_INTROSPECTION
// Avoid doxygen preprocessor using feature-selection definitions. // Avoid doxygen preprocessor using feature-selection definitions.

View File

@@ -40,16 +40,6 @@ Compiler::Compiler(CodeHolder* code) noexcept : BaseCompiler() {
} }
Compiler::~Compiler() noexcept {} Compiler::~Compiler() noexcept {}
// ============================================================================
// [asmjit::x86::Compiler - Finalize]
// ============================================================================
Error Compiler::finalize() {
ASMJIT_PROPAGATE(runPasses());
Assembler a(_code);
return serialize(&a);
}
// ============================================================================ // ============================================================================
// [asmjit::x86::Compiler - Events] // [asmjit::x86::Compiler - Events]
// ============================================================================ // ============================================================================

View File

@@ -698,13 +698,6 @@ public:
//! \} //! \}
//! \name Finalize
//! \{
ASMJIT_API Error finalize() override;
//! \}
//! \name Events //! \name Events
//! \{ //! \{