1 //===- FileHeaderReader.h - XRay Trace File Header Reading Function -------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares functions that can load an XRay log header from various
13 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_XRAY_FILEHEADERREADER_H_
15 #define LLVM_LIB_XRAY_FILEHEADERREADER_H_
17 #include "llvm/Support/DataExtractor.h"
18 #include "llvm/Support/Error.h"
19 #include "llvm/XRay/XRayRecord.h"
25 /// Convenience function for loading the file header given a data extractor at a
27 Expected<XRayFileHeader> readBinaryFormatHeader(DataExtractor &HeaderExtractor,
33 #endif // LLVM_LIB_XRAY_FILEHEADERREADER_H_