HomePhabricator

[XRay] Implement `llvm-xray extract`, start of the llvm-xray tool

Description

[XRay] Implement llvm-xray extract, start of the llvm-xray tool

Usage:

llvm-xray extract <object file> [-o <filename or '-'>]

The tool gets the XRay instrumentation map from an object file and turns
it into YAML. We first support ELF64 sleds on x86_64 binaries, with
provision for supporting other supported platforms and formats later.

This is the first of a many-part change to fully implement the
llvm-xray tool.

We also define a subcommand registration and dispatch mechanism to be
used by other further subcommand implementations for llvm-xray.

Diffusion Revision: https://reviews.llvm.org/D21987

Details

Committed
dberrisOct 25 2016, 9:14 PM
Differential Revision
D21987: [XRay] Implement `llvm-xray extract`, start of the llvm-xray tool
Parents
rL285164: Rename variable to be more consistent.
Branches
Unknown
Tags
Unknown