//===- RemarkSerializer.cpp -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file provides tools for serializing remarks. // //===----------------------------------------------------------------------===// #include "llvm/Remarks/RemarkSerializer.h" #include "llvm/Remarks/BitstreamRemarkSerializer.h" #include "llvm/Remarks/YAMLRemarkSerializer.h" usingnamespacellvm; usingnamespacellvm::remarks; Expected<std::unique_ptr<RemarkSerializer>> remarks::createRemarkSerializer(Format RemarksFormat, SerializerMode Mode, raw_ostream &OS) { … } Expected<std::unique_ptr<RemarkSerializer>> remarks::createRemarkSerializer(Format RemarksFormat, SerializerMode Mode, raw_ostream &OS, remarks::StringTable StrTab) { … }