summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit385fa26f9ad541c4b0aced65d79675297aa7f204 (patch)
tree7e49ce44696253f076cbb97516d25eda5bbf944e /llvm/lib/IR
parente8f35e1557cbc58b12fb7ec3750e64c6933e9905 (diff)
downloadbcm5719-llvm-385fa26f9ad541c4b0aced65d79675297aa7f204.tar.gz
bcm5719-llvm-385fa26f9ad541c4b0aced65d79675297aa7f204.zip
C API: Add LLVMGetBufferStart()
llvm-svn: 179646
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index e769ab4e7d0..e0f76d30dac 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud