/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef DISASSEMBLER_ACCUMULATORS_H #define DISASSEMBLER_ACCUMULATORS_H #include #include #include #include "libpandafile/debug_info_extractor.h" namespace panda::disasm { using LabelTable = std::map; using IdList = std::vector; struct MethodInfo { std::string method_info; std::vector instructions_info; panda_file::LineNumberTable line_number_table; panda_file::ColumnNumberTable column_number_table; panda_file::LocalVariableTable local_variable_table; }; struct RecordInfo { std::string record_info; std::vector fields_info; }; struct ProgInfo { std::map records_info; std::map methods_info; }; using AnnotationList = std::vector>; struct RecordAnnotations { AnnotationList ann_list; std::map field_annotations; }; struct ProgAnnotations { std::map method_annotations; std::map record_annotations; }; } // namespace panda::disasm #endif // DISASSEMBLER_ACCUMULATORS_H