summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-04-16 23:12:47 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-04-16 23:12:47 +0000
commit4074343b2d9bec7a70c500b2f62b3cd63b44f8c9 (patch)
treed737ee37fede9c20792e09f132e9c3c800ae05dd /lib/IR
parent68ee1520ce777871353e33fcc63725439e611f4e (diff)
downloadllvm-4074343b2d9bec7a70c500b2f62b3cd63b44f8c9.tar.gz
llvm-4074343b2d9bec7a70c500b2f62b3cd63b44f8c9.tar.bz2
llvm-4074343b2d9bec7a70c500b2f62b3cd63b44f8c9.tar.xz
C API: Add LLVMGetBufferStart()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index e769ab4e7d..e0f76d30da 100644
--- a/lib/IR/Core.cpp
+++ b/lib/IR/Core.cpp
@@ -2455,6 +2455,9 @@ LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy(
StringRef(BufferName)));
}
+const char* LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf) {
+ return unwrap(MemBuf)->getBufferStart();
+}
void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf) {
delete unwrap(MemBuf);