//===- RemarkFormat.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 // //===----------------------------------------------------------------------===// // // Implementation of utilities to handle the different remark formats. // //===----------------------------------------------------------------------===// #include "llvm/Remarks/RemarkFormat.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Remarks/BitstreamRemarkContainer.h" usingnamespacellvm; usingnamespacellvm::remarks; Expected<Format> llvm::remarks::parseFormat(StringRef FormatStr) { … } Expected<Format> llvm::remarks::magicToFormat(StringRef MagicStr) { … }