comparison tools/binding/llvm/c/BitWriter.d @ 1273:1ba61de8796b

Committing LLVM binding for D as it currently exists in the SVN repository.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 27 Apr 2009 22:33:17 +0200
parents
children
comparison
equal deleted inserted replaced
1272:dd4766851b37 1273:1ba61de8796b
1 // Converted to the D programming language by Tomas Lindquist Olsen 2008
2 // Original file header:
3 /*===-- llvm-c/BitWriter.h - BitWriter Library C Interface ------*- C++ -*-===*\
4 |* *|
5 |* The LLVM Compiler Infrastructure *|
6 |* *|
7 |* This file is distributed under the University of Illinois Open Source *|
8 |* License. See LICENSE.TXT for details. *|
9 |* *|
10 |*===----------------------------------------------------------------------===*|
11 |* *|
12 |* This header declares the C interface to libLLVMBitWriter.a, which *|
13 |* implements output of the LLVM bitcode format. *|
14 |* *|
15 |* Many exotic languages can interoperate with C code but have a harder time *|
16 |* with C++ due to name mangling. So in addition to C, this interface enables *|
17 |* tools written in such languages. *|
18 |* *|
19 \*===----------------------------------------------------------------------===*/
20
21 module llvm.c.BitWriter;
22
23 import llvm.c.Core;
24
25 extern(C):
26
27 /*===-- Operations on modules ---------------------------------------------===*/
28
29 /** Writes a module to an open file descriptor. Returns 0 on success. */
30 int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
31
32 /** Writes a module to the specified path. Returns 0 on success. */
33 int LLVMWriteBitcodeToFile(LLVMModuleRef M, /*const*/ char *Path);