CompilerPass.cpp 388 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include "Compiler/CompilerPass.h"
  7. #include "Function.h"
  8. namespace JSSpecCompiler {
  9. void IntraproceduralCompilerPass::run()
  10. {
  11. for (auto const& function : m_translation_unit->functions_to_compile()) {
  12. m_function = function;
  13. process_function();
  14. }
  15. }
  16. }