diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-04-16 23:12:51 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-04-16 23:12:51 +0000 |
commit | edc93b356da17d404467d47456bb27b99c775e39 (patch) | |
tree | 367d7be47d45160ce2101b0d053ded12c71da5f8 /lib/IR | |
parent | 4074343b2d9bec7a70c500b2f62b3cd63b44f8c9 (diff) |
C API: Add LLVMGetBufferSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index e0f76d30da..50d1aaaff8 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -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); } |