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.
I don't think we can unconditionally use noexcept (because MSVC 2013) - there's an LLVM_NOEXCEPT macro used in some places, but I probably wouldn't bother with it at all unless there's a lot of value.