This is an archive of the discontinued LLVM Phabricator instance.

[XRay] Fix the test func-id-utils.cc on PPC.
ClosedPublic

Authored by timshen on May 9 2017, 9:21 PM.

Details

Summary

The test fails on PPC, because the address of a function may vary
depending on whether the "taker" shares the same ToC (roughly, in the
same "module") as the function.

Therefore the addresses of the functions taken in func-id-utils.cc may be
different from the addresses taken in xray runtime.

Change the test to be permissive on address comparison.

Event Timeline

timshen created this revision.May 9 2017, 9:21 PM
timshen updated this revision to Diff 98398.May 9 2017, 9:25 PM

s/==/</ on non-PPC platforms. set_difference takes a less-than comparator.

dberris accepted this revision.May 9 2017, 10:06 PM

LGTM

This revision is now accepted and ready to land.May 9 2017, 10:06 PM
This revision was automatically updated to reflect the committed changes.