#include "bolt/Rewrite/RewriteInstance.h"
#include "bolt/Utils/CommandLineOpts.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Object/Binary.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/TargetSelect.h"
usingnamespacellvm;
usingnamespacebolt;
namespace opts {
static cl::OptionCategory *HeatmapCategories[] = …;
static cl::opt<std::string> InputFilename(cl::Positional,
cl::desc("<executable>"),
cl::Required,
cl::cat(HeatmapCategory));
}
static StringRef ToolName;
static void report_error(StringRef Message, std::error_code EC) { … }
static void report_error(StringRef Message, Error E) { … }
static std::string GetExecutablePath(const char *Argv0) { … }
int main(int argc, char **argv) { … }