This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt][NFC] Add example always/never instrument files.
ClosedPublic

Authored by dberris on Jun 26 2017, 10:54 PM.

Details

Summary

This change introduces two files that show exaples of the
always/never instrument files that can be provided to clang. We don't
add these as defaults yet in clang, which we can do later on (in a
separate change).

We also add a test that makes sure that these apply in the compiler-rt
project tests, and that changes in clang don't break the expectations in
compiler-rt.

Diff Detail

Repository
rL LLVM

Event Timeline

dberris created this revision.Jun 26 2017, 10:54 PM
pelikan accepted this revision.Jun 26 2017, 11:32 PM

LGTM although I haven't build-tested it.

This revision is now accepted and ready to land.Jun 26 2017, 11:32 PM

Actually, maybe setting the threshold to 0 wouldn't be a bad idea.

This revision was automatically updated to reflect the committed changes.