diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
| commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
| tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /lld/MachO/Writer.h | |
| parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) | |
Notes
Diffstat (limited to 'lld/MachO/Writer.h')
| -rw-r--r-- | lld/MachO/Writer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lld/MachO/Writer.h b/lld/MachO/Writer.h new file mode 100644 index 000000000000..7f846233107a --- /dev/null +++ b/lld/MachO/Writer.h @@ -0,0 +1,31 @@ +//===- Writer.h -------------------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLD_MACHO_WRITER_H +#define LLD_MACHO_WRITER_H + +#include <cstdint> + +namespace lld { +namespace macho { + +class LoadCommand { +public: + virtual ~LoadCommand() = default; + virtual uint32_t getSize() const = 0; + virtual void writeTo(uint8_t *buf) const = 0; +}; + +void writeResult(); + +void createSyntheticSections(); + +} // namespace macho +} // namespace lld + +#endif |
