llvm/llvm/lib/CGData/CodeGenDataReader.cpp

//===- CodeGenDataReader.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 contains support for reading codegen data.
//
//===----------------------------------------------------------------------===//

#include "llvm/CGData/CodeGenDataReader.h"
#include "llvm/CGData/OutlinedHashTreeRecord.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/MemoryBuffer.h"

#define DEBUG_TYPE

usingnamespacellvm;

namespace llvm {

static Expected<std::unique_ptr<MemoryBuffer>>
setupMemoryBuffer(const Twine &Filename, vfs::FileSystem &FS) {}

Error CodeGenDataReader::mergeFromObjectFile(
    const object::ObjectFile *Obj,
    OutlinedHashTreeRecord &GlobalOutlineRecord) {}

Error IndexedCodeGenDataReader::read() {}

Expected<std::unique_ptr<CodeGenDataReader>>
CodeGenDataReader::create(const Twine &Path, vfs::FileSystem &FS) {}

Expected<std::unique_ptr<CodeGenDataReader>>
CodeGenDataReader::create(std::unique_ptr<MemoryBuffer> Buffer) {}

bool IndexedCodeGenDataReader::hasFormat(const MemoryBuffer &DataBuffer) {}

bool TextCodeGenDataReader::hasFormat(const MemoryBuffer &Buffer) {}
Error TextCodeGenDataReader::read() {}
} // end namespace llvm