2015-08-06 02:27:44 +08:00
|
|
|
//===-- MachOUtils.h - Mach-o specific helpers for dsymutil --------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
|
|
|
|
#define LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2015-09-03 00:49:13 +08:00
|
|
|
class MCStreamer;
|
|
|
|
class raw_fd_ostream;
|
2015-08-06 02:27:44 +08:00
|
|
|
namespace dsymutil {
|
2015-09-03 00:49:13 +08:00
|
|
|
class DebugMap;
|
2015-08-06 02:27:44 +08:00
|
|
|
struct LinkOptions;
|
|
|
|
namespace MachOUtils {
|
|
|
|
|
|
|
|
struct ArchAndFilename {
|
|
|
|
std::string Arch, Path;
|
|
|
|
ArchAndFilename(StringRef Arch, StringRef Path) : Arch(Arch), Path(Path) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
bool generateUniversalBinary(SmallVectorImpl<ArchAndFilename> &ArchFiles,
|
2015-10-09 06:35:53 +08:00
|
|
|
StringRef OutputFileName, const LinkOptions &,
|
|
|
|
StringRef SDKPath);
|
2015-08-26 07:15:26 +08:00
|
|
|
|
2015-09-03 00:49:13 +08:00
|
|
|
bool generateDsymCompanion(const DebugMap &DM, MCStreamer &MS,
|
|
|
|
raw_fd_ostream &OutFile);
|
|
|
|
|
2015-08-26 07:15:26 +08:00
|
|
|
std::string getArchName(StringRef Arch);
|
2015-08-06 02:27:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
|