diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-04-16 23:12:56 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-04-16 23:12:56 +0000 |
commit | ec924c52322a92373c418ee5b2ecf9e7c7278dc8 (patch) | |
tree | 516bff289fc832656c91cd96df537ebf982289cf /llvm/include/llvm-c | |
parent | b7fb724b04d6fb6953ea4ae999afda2a58fc033f (diff) | |
download | bcm5719-llvm-ec924c52322a92373c418ee5b2ecf9e7c7278dc8.tar.gz bcm5719-llvm-ec924c52322a92373c418ee5b2ecf9e7c7278dc8.zip |
C API: Add LLVMTargetMachineEmitToMemoryBuffer()
llvm-svn: 179648
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/TargetMachine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/TargetMachine.h b/llvm/include/llvm-c/TargetMachine.h index 691abdfcb47..a02161aaa4e 100644 --- a/llvm/include/llvm-c/TargetMachine.h +++ b/llvm/include/llvm-c/TargetMachine.h @@ -114,6 +114,9 @@ LLVMTargetDataRef LLVMGetTargetMachineData(LLVMTargetMachineRef T); LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage); +/** Compile the LLVM IR stored in \p M and store the result in \p OutMemBuf. */ +LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M, + LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf); |