15 #ifndef LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H
16 #define LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H
41 : SV(std::move(SV)), BufferName(
"<in-memory object>") {
48 : SV(std::move(SV)), BufferName(Name) {
58 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.
const char * getBufferIdentifier() const override
Return an identifier for this buffer, typically the filename it was read from.
ObjectMemoryBuffer(SmallVectorImpl< char > &&SV, StringRef Name)
Construct a named ObjectMemoryBuffer from the given SmallVector r-value and StringRef.
ObjectMemoryBuffer(SmallVectorImpl< char > &&SV)
Construct an ObjectMemoryBuffer from the given SmallVector r-value.
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.