[dsymutil] Implement support for handling mach-o universal binaries as main input...
[oota-llvm.git] / tools / dsymutil / MachOUtils.h
1 //===-- MachOUtils.h - Mach-o specific helpers for dsymutil  --------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
10 #define LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
11
12 #include <string>
13 #include "llvm/ADT/StringRef.h"
14
15 namespace llvm {
16 namespace dsymutil {
17 struct LinkOptions;
18 namespace MachOUtils {
19
20 struct ArchAndFilename {
21   std::string Arch, Path;
22   ArchAndFilename(StringRef Arch, StringRef Path) : Arch(Arch), Path(Path) {}
23 };
24
25 bool generateUniversalBinary(SmallVectorImpl<ArchAndFilename> &ArchFiles,
26                              StringRef OutputFileName, const LinkOptions &);
27 }
28 }
29 }
30 #endif // LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H