llvm/llvm/include/llvm/Object/MachOUniversalWriter.h

//===- MachOUniversalWriter.h - MachO universal binary writer----*- 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
//
//===----------------------------------------------------------------------===//
//
// Declares the Slice class and writeUniversalBinary function for writing a
// MachO universal binary file.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_OBJECT_MACHOUNIVERSALWRITER_H
#define LLVM_OBJECT_MACHOUNIVERSALWRITER_H

#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/Error.h"
#include <cstdint>
#include <string>

namespace llvm {
class LLVMContext;

namespace object {
class Archive;
class Binary;
class IRObjectFile;
class MachOObjectFile;

class Slice {};

enum class FatHeaderType {};

Error writeUniversalBinary(ArrayRef<Slice> Slices, StringRef OutputFileName,
                           FatHeaderType FatHeader = FatHeaderType::FatHeader);

Error writeUniversalBinaryToStream(
    ArrayRef<Slice> Slices, raw_ostream &Out,
    FatHeaderType FatHeader = FatHeaderType::FatHeader);

} // end namespace object

} // end namespace llvm

#endif // LLVM_OBJECT_MACHOUNIVERSALWRITER_H