llvm/bolt/lib/Utils/Utils.cpp

//===- bolt/Utils/Utils.cpp - Common helper functions ---------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// Common helper functions.
//
//===----------------------------------------------------------------------===//

#include "bolt/Utils/Utils.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/raw_ostream.h"

namespace llvm {
namespace bolt {

void report_error(StringRef Message, std::error_code EC) {}

void report_error(StringRef Message, Error E) {}

void check_error(std::error_code EC, StringRef Message) {}

void check_error(Error E, Twine Message) {}

std::string getEscapedName(const StringRef &Name) {}

std::string getUnescapedName(const StringRef &Name) {}

std::optional<StringRef> getCommonName(const StringRef Name, bool KeepSuffix,
                                       ArrayRef<StringRef> Suffixes) {}

std::optional<StringRef> getLTOCommonName(const StringRef Name) {}

std::optional<uint8_t> readDWARFExpressionTargetReg(StringRef ExprBytes) {}

} // namespace bolt

bool operator==(const llvm::MCCFIInstruction &L,
                const llvm::MCCFIInstruction &R) {}

} // namespace llvm