27 lines · c
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8/// \file9/// Functions to emit the LC_SEGMENT load command, and to provide the bytes10/// that appear later in the corefile.11//===----------------------------------------------------------------------===//12 13#ifndef YAML2MACHOCOREFILE_MEMORYWRITER_H14#define YAML2MACHOCOREFILE_MEMORYWRITER_H15 16#include "CoreSpec.h"17 18#include <vector>19 20void create_lc_segment_cmd(const CoreSpec &spec, std::vector<uint8_t> &cmds,21 const MemoryRegion &memory, off_t data_offset);22 23void create_memory_bytes(const CoreSpec &spec, const MemoryRegion &memory,24 std::vector<uint8_t> &buf);25 26#endif27