//===- SymbolRemappingReader.cpp - Read symbol remapping file -------------===// // // 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 contains definitions needed for reading and applying symbol // remapping files. // //===----------------------------------------------------------------------===// #include "llvm/ProfileData/SymbolRemappingReader.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/LineIterator.h" #include "llvm/Support/MemoryBuffer.h" usingnamespacellvm; char SymbolRemappingParseError::ID; /// Load a set of name remappings from a text file. /// /// See the documentation at the top of the file for an explanation of /// the expected format. Error SymbolRemappingReader::read(MemoryBuffer &B) { … }