mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
93d3a6238d
Add the capability for all revng tooling to run with an S3-backed workdir.
27 lines
556 B
C++
27 lines
556 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "llvm/Support/MemoryBuffer.h"
|
|
|
|
namespace revng {
|
|
|
|
class ReadableFile {
|
|
protected:
|
|
ReadableFile() = default;
|
|
|
|
public:
|
|
virtual ~ReadableFile() = default;
|
|
|
|
ReadableFile(const ReadableFile &Other) = delete;
|
|
ReadableFile &operator=(const ReadableFile &Other) = delete;
|
|
ReadableFile(ReadableFile &&Other) = delete;
|
|
ReadableFile &operator=(ReadableFile &&Other) = delete;
|
|
|
|
virtual llvm::MemoryBuffer &buffer() = 0;
|
|
};
|
|
|
|
} // namespace revng
|