summaryrefslogtreecommitdiff
path: root/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-04-16 23:12:51 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-04-16 23:12:51 +0000
commitedc93b356da17d404467d47456bb27b99c775e39 (patch)
tree367d7be47d45160ce2101b0d053ded12c71da5f8 /lib/IR/Core.cpp
parent4074343b2d9bec7a70c500b2f62b3cd63b44f8c9 (diff)
downloadllvm-edc93b356da17d404467d47456bb27b99c775e39.tar.gz
llvm-edc93b356da17d404467d47456bb27b99c775e39.tar.bz2
llvm-edc93b356da17d404467d47456bb27b99c775e39.tar.xz
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/Core.cpp')
-rw-r--r--lib/IR/Core.cpp4
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);
}