14 #ifndef LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H 15 #define LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H 40 : SV(
std::move(SV)), BufferName(
"<in-memory object>") {
47 : SV(
std::move(SV)), BufferName(Name) {
60 std::string BufferName;
void init(const char *BufStart, const char *BufEnd, bool RequiresNullTerminator)
init - Initialize this MemoryBuffer as a reference to externally allocated memory, memory that we know is already null terminated.
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
SmallVectorMemoryBuffer(SmallVectorImpl< char > &&SV, StringRef Name)
Construct a named SmallVectorMemoryBuffer from the given SmallVector r-value and StringRef.
~SmallVectorMemoryBuffer() override
SmallVectorMemoryBuffer(SmallVectorImpl< char > &&SV)
Construct an SmallVectorMemoryBuffer from the given SmallVector r-value.
StringRef getBufferIdentifier() const override
Return an identifier for this buffer, typically the filename it was read from.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
SmallVector-backed MemoryBuffer instance.
BufferKind
The kind of memory backing used to support the MemoryBuffer.
StringRef - Represent a constant reference to a string, i.e.
BufferKind getBufferKind() const override
Return information on the memory mechanism used to support the MemoryBuffer.