llvm/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp

//===- lib/DebugInfo/Symbolize/DIPrinter.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 defines the DIPrinter class, which is responsible for printing
// structures defined in DebugInfo/DIContext.h
//
//===----------------------------------------------------------------------===//

#include "llvm/DebugInfo/Symbolize/DIPrinter.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/DebugInfo/DIContext.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>

namespace llvm {
namespace symbolize {

class SourceCode {};

void PlainPrinterBase::printHeader(std::optional<uint64_t> Address) {}

// Prints source code around in the FileName the Line.
void PlainPrinterBase::printContext(SourceCode SourceCode) {}

void PlainPrinterBase::printFunctionName(StringRef FunctionName, bool Inlined) {}

void LLVMPrinter::printSimpleLocation(StringRef Filename,
                                      const DILineInfo &Info) {}

void GNUPrinter::printSimpleLocation(StringRef Filename,
                                     const DILineInfo &Info) {}

void PlainPrinterBase::printVerbose(StringRef Filename,
                                    const DILineInfo &Info) {}

void LLVMPrinter::printStartAddress(const DILineInfo &Info) {}

void LLVMPrinter::printFooter() {}

void PlainPrinterBase::print(const DILineInfo &Info, bool Inlined) {}

void PlainPrinterBase::print(const Request &Request, const DILineInfo &Info) {}

void PlainPrinterBase::print(const Request &Request,
                             const DIInliningInfo &Info) {}

void PlainPrinterBase::print(const Request &Request, const DIGlobal &Global) {}

void PlainPrinterBase::print(const Request &Request,
                             const std::vector<DILocal> &Locals) {}

void PlainPrinterBase::print(const Request &Request,
                             const std::vector<DILineInfo> &Locations) {}

bool PlainPrinterBase::printError(const Request &Request,
                                  const ErrorInfoBase &ErrorInfo) {}

static std::string toHex(uint64_t V) {}

static json::Object toJSON(const Request &Request, StringRef ErrorMsg = "") {}

static json::Object toJSON(const DILineInfo &LineInfo) {}

void JSONPrinter::print(const Request &Request, const DILineInfo &Info) {}

void JSONPrinter::print(const Request &Request, const DIInliningInfo &Info) {}

void JSONPrinter::print(const Request &Request, const DIGlobal &Global) {}

void JSONPrinter::print(const Request &Request,
                        const std::vector<DILocal> &Locals) {}

void JSONPrinter::print(const Request &Request,
                        const std::vector<DILineInfo> &Locations) {}

bool JSONPrinter::printError(const Request &Request,
                             const ErrorInfoBase &ErrorInfo) {}

void JSONPrinter::listBegin() {}

void JSONPrinter::listEnd() {}

} // end namespace symbolize
} // end namespace llvm