This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] Remove more STL dependenices from FDR mode
ClosedPublic

Authored by dberris on Oct 24 2017, 10:21 PM.

Details

Summary

This change removes dependencies on STL types:

  • std::aligned_storage -- we're using manually-aligned character buffers instead for metadata and function records.
  • std::tuple -- use a plain old struct instead.

This is an incremental step in removing all STL references from the
compiler-rt implementation of XRay (llvm.org/PR32274).

Event Timeline

dberris created this revision.Oct 24 2017, 10:21 PM
dblaikie accepted this revision.Oct 25 2017, 12:21 PM
dblaikie added inline comments.
compiler-rt/lib/xray/xray_fdr_logging.cc
212–213

All upper/underscores doesn't seem to match the LLVM naming convention here

This revision is now accepted and ready to land.Oct 25 2017, 12:21 PM
dberris updated this revision to Diff 120719.Oct 27 2017, 4:47 PM
dberris marked an inline comment as done.
  • fixup: follow naming convention for local variables
dberris updated this revision to Diff 120720.Oct 27 2017, 4:57 PM
  • fixup: fix alignment of array, and undo unnecessary formatting
This revision was automatically updated to reflect the committed changes.