1 //===-- MachOUtils.h - Mach-o specific helpers for dsymutil --------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
10 #define LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
13 #include "llvm/ADT/StringRef.h"
21 namespace MachOUtils {
23 struct ArchAndFilename {
24 std::string Arch, Path;
25 ArchAndFilename(StringRef Arch, StringRef Path) : Arch(Arch), Path(Path) {}
28 bool generateUniversalBinary(SmallVectorImpl<ArchAndFilename> &ArchFiles,
29 StringRef OutputFileName, const LinkOptions &);
31 bool generateDsymCompanion(const DebugMap &DM, MCStreamer &MS,
32 raw_fd_ostream &OutFile);
34 std::string getArchName(StringRef Arch);
38 #endif // LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H