| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* Copyright 2025 Jonathan S. Arney | ||
| 2 | * | ||
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | * you may not use this file except in compliance with the License. | ||
| 5 | * You may obtain a copy of the License at | ||
| 6 | * | ||
| 7 | * https://github.com/jarney/gyoji/blob/master/LICENSE | ||
| 8 | * | ||
| 9 | * Unless required by applicable law or agreed to in writing, software | ||
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | * See the License for the specific language governing permissions and | ||
| 13 | * limitations under the License. | ||
| 14 | */ | ||
| 15 | #include <gyoji-analysis.hpp> | ||
| 16 | #include <stdio.h> | ||
| 17 | |||
| 18 | using namespace Gyoji::mir; | ||
| 19 | using namespace Gyoji::context; | ||
| 20 | using namespace Gyoji::analysis; | ||
| 21 | |||
| 22 | 140 | AnalysisPass::AnalysisPass(CompilerContext & _compiler_context, std::string _name) | |
| 23 | 140 | : compiler_context(_compiler_context) | |
| 24 | 140 | , name(_name) | |
| 25 | 140 | {} | |
| 26 | |||
| 27 | 280 | AnalysisPass::~AnalysisPass() | |
| 28 | 280 | {} | |
| 29 | |||
| 30 | Gyoji::context::CompilerContext & | ||
| 31 | 270 | AnalysisPass::get_compiler_context() const | |
| 32 | 270 | { return compiler_context; } | |
| 33 | |||
| 34 | const std::string & | ||
| 35 | 140 | AnalysisPass::get_name() const | |
| 36 | 140 | { return name; } | |
| 37 |