mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
JSSpecCompiler: Refactor CompilerPass to accept TranslationUnitRef
This commit is contained in:
committed by
Andrew Kaster
parent
24682f5dcf
commit
61fa00d46c
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "Compiler/CompilerPass.h"
|
||||
#include "Function.h"
|
||||
|
||||
namespace JSSpecCompiler {
|
||||
|
||||
void IntraproceduralCompilerPass::run()
|
||||
{
|
||||
for (auto const& function : m_translation_unit->function_definitions) {
|
||||
m_function = function;
|
||||
process_function();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user