[XRay] Refactor file header reading (NFC)
authorDean Michael Berris <dberris@google.com>
Wed, 22 Aug 2018 07:37:55 +0000 (07:37 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 22 Aug 2018 07:37:55 +0000 (07:37 +0000)
commitd764c1b656321d8742ab0436c26e8a160929d847
tree4012b880117bc486fabe2d1615037e4b08e6fcb8
parent14e4700468d1b843276e7d683f00ce60afaad57a
[XRay] Refactor file header reading (NFC)

Summary:
This patch moves out the definition of the XRay log file header from
binary logs into its own header and implementation file.

This is one part of the refactoring being done in D50441.

Reviewers: eizan

Subscribers: mgorny, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D51086

llvm-svn: 340389
llvm/include/llvm/XRay/FileHeaderReader.h [new file with mode: 0644]
llvm/lib/XRay/CMakeLists.txt
llvm/lib/XRay/FileHeaderReader.cpp [new file with mode: 0644]
llvm/lib/XRay/Trace.cpp