1 //===- FileHeaderReader.h - XRay Trace File Header Reading Function -------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file declares functions that can load an XRay log header from various
12 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_XRAY_FILEHEADERREADER_H_
14 #define LLVM_LIB_XRAY_FILEHEADERREADER_H_
16 #include "llvm/Support/DataExtractor.h"
17 #include "llvm/Support/Error.h"
18 #include "llvm/XRay/XRayRecord.h"
24 /// Convenience function for loading the file header given a data extractor at a
26 Expected
<XRayFileHeader
> readBinaryFormatHeader(DataExtractor
&HeaderExtractor
,
32 #endif // LLVM_LIB_XRAY_FILEHEADERREADER_H_