#include "bolt/Core/BinaryFunction.h"
#include "bolt/Core/DebugData.h"
#include "bolt/Rewrite/MetadataRewriter.h"
#include "bolt/Rewrite/MetadataRewriters.h"
#include "bolt/Utils/CommandLineOpts.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Timer.h"
usingnamespacellvm;
usingnamespacebolt;
namespace opts {
static cl::opt<bool> PrintSDTMarkers("print-sdt",
cl::desc("print all SDT markers"),
cl::Hidden, cl::cat(BoltCategory));
}
namespace {
class SDTRewriter final : public MetadataRewriter { … };
void SDTRewriter::readSection() { … }
Error SDTRewriter::preCFGInitializer() { … }
Error SDTRewriter::postEmitFinalizer() { … }
void SDTRewriter::printSDTMarkers() const { … }
}
std::unique_ptr<MetadataRewriter>
llvm::bolt::createSDTRewriter(BinaryContext &BC) { … }