2015-08-05 18:27:44 +00: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-02 16:49:13 +00:00
|
|
|
class MCStreamer;
|
|
|
|
class raw_fd_ostream;
|
2015-08-05 18:27:44 +00:00
|
|
|
namespace dsymutil {
|
2015-09-02 16:49:13 +00:00
|
|
|
class DebugMap;
|
2015-08-05 18:27:44 +00: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-08 22:35:53 +00:00
|
|
|
StringRef OutputFileName, const LinkOptions &,
|
|
|
|
StringRef SDKPath);
|
2015-08-25 23:15:26 +00:00
|
|
|
|
2015-09-02 16:49:13 +00:00
|
|
|
bool generateDsymCompanion(const DebugMap &DM, MCStreamer &MS,
|
|
|
|
raw_fd_ostream &OutFile);
|
|
|
|
|
2015-08-25 23:15:26 +00:00
|
|
|
std::string getArchName(StringRef Arch);
|
2015-08-05 18:27:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // LLVM_TOOLS_DSYMUTIL_MACHOUTILS_H
|