#include "llvm/Remarks/RemarkLinker.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/SymbolicFile.h"
#include "llvm/Remarks/RemarkParser.h"
#include "llvm/Remarks/RemarkSerializer.h"
#include "llvm/Support/Error.h"
#include <optional>
usingnamespacellvm;
usingnamespacellvm::remarks;
namespace llvm {
class raw_ostream;
}
static Expected<StringRef>
getRemarksSectionName(const object::ObjectFile &Obj) { … }
Expected<std::optional<StringRef>>
llvm::remarks::getRemarksSectionContents(const object::ObjectFile &Obj) { … }
Remark &RemarkLinker::keep(std::unique_ptr<Remark> Remark) { … }
void RemarkLinker::setExternalFilePrependPath(StringRef PrependPathIn) { … }
Error RemarkLinker::link(StringRef Buffer, std::optional<Format> RemarkFormat) { … }
Error RemarkLinker::link(const object::ObjectFile &Obj,
std::optional<Format> RemarkFormat) { … }
Error RemarkLinker::serialize(raw_ostream &OS, Format RemarksFormat) const { … }