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.
Depends on D21982 for the in-memory logging in compiler-rt.
Depends on D21983 for the changes to flags in clang.
Do we need both yaml and json? If this is only for testing purposes, seems one would suffice? (is this for other purposes?)