mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
Revert the last change
This commit is contained in:
@@ -40,6 +40,17 @@ 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);
|
||||||
|
a.addEncodingOptions(encodingOptions());
|
||||||
|
a.addValidationOptions(validationOptions());
|
||||||
|
return serialize(&a);
|
||||||
|
}
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// [asmjit::x86::Compiler - Events]
|
// [asmjit::x86::Compiler - Events]
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
@@ -698,6 +698,13 @@ public:
|
|||||||
|
|
||||||
//! \}
|
//! \}
|
||||||
|
|
||||||
|
//! \name Finalize
|
||||||
|
//! \{
|
||||||
|
|
||||||
|
ASMJIT_API Error finalize() override;
|
||||||
|
|
||||||
|
//! \}
|
||||||
|
|
||||||
//! \name Events
|
//! \name Events
|
||||||
//! \{
|
//! \{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user