#include "xray-registry.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/XRay/BlockIndexer.h"
#include "llvm/XRay/BlockPrinter.h"
#include "llvm/XRay/BlockVerifier.h"
#include "llvm/XRay/FDRRecordConsumer.h"
#include "llvm/XRay/FDRRecordProducer.h"
#include "llvm/XRay/FDRRecords.h"
#include "llvm/XRay/FileHeaderReader.h"
#include "llvm/XRay/RecordPrinter.h"
usingnamespacellvm;
usingnamespacexray;
static cl::SubCommand Dump("fdr-dump", "FDR Trace Dump");
static cl::opt<std::string> DumpInput(cl::Positional,
cl::desc("<xray fdr mode log>"),
cl::Required, cl::sub(Dump));
static cl::opt<bool> DumpVerify("verify",
cl::desc("verify structure of the log"),
cl::init(false), cl::sub(Dump));
static CommandRegistration Unused(&Dump, []() -> Error { … });