This is an archive of the discontinued LLVM Phabricator instance.

[xray] Add XRay support for Mach-O in CodeGen
ClosedPublic

Authored by kubamracek on Nov 22 2016, 11:01 AM.

Details

Summary

Currently, XRay only supports emitting the XRay table (xray_instr_map) on ELF binaries. Let's add Mach-O support.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek retitled this revision from to [xray] Add XRay support for Mach-O in CodeGen.
kubamracek updated this object.
kubamracek added reviewers: dberris, rnk, kcc.
kubamracek set the repository for this revision to rL LLVM.
kubamracek added a subscriber: llvm-commits.
dberris accepted this revision.Nov 22 2016, 3:56 PM
dberris edited edge metadata.

LGTM -- thanks Kuba!

Just out of curiosity, you're also going to do the clang and compiler-rt side changes to support XRay for Mach-O supporting systems?

This revision is now accepted and ready to land.Nov 22 2016, 3:56 PM

LGTM -- thanks Kuba!

Just out of curiosity, you're also going to do the clang and compiler-rt side changes to support XRay for Mach-O supporting systems?

I don't have time to work on that now, but I have partial and ugly patches for compiler-rt and clang. I'll try to clean those and push the out when I get a chance to.

This revision was automatically updated to reflect the committed changes.