mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
C API: Add LLVMGetBufferSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4074343b2d
commit
edc93b356d
@ -2580,6 +2580,7 @@ LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy(const char *InputD
|
||||
size_t InputDataLength,
|
||||
const char *BufferName);
|
||||
const char* LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf);
|
||||
size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf);
|
||||
void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf);
|
||||
|
||||
/**
|
||||
|
@ -2459,6 +2459,10 @@ const char* LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf) {
|
||||
return unwrap(MemBuf)->getBufferStart();
|
||||
}
|
||||
|
||||
size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf) {
|
||||
return unwrap(MemBuf)->getBufferSize();
|
||||
}
|
||||
|
||||
void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf) {
|
||||
delete unwrap(MemBuf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user