diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-04-18 10:02:34 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-04-18 10:02:52 -0400 |
| commit | f12998e5d7a4409d2bf748a671c345a79085213e (patch) | |
| tree | e8ae174f5e6bf1c8c7c87b18d807684d1b126358 /src/comp/lib | |
| parent | Make log the log level configurable per module (diff) | |
| download | rust-f12998e5d7a4409d2bf748a671c345a79085213e.tar.xz rust-f12998e5d7a4409d2bf748a671c345a79085213e.zip | |
Add a -c option.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 8d0910d5..3c40a583 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -815,8 +815,10 @@ native mod llvm = llvm_lib { fn LLVMRustCreateMemoryBufferWithContentsOfFile(sbuf Path) -> MemoryBufferRef; - fn LLVMRustWriteAssembly(PassManagerRef PM, ModuleRef M, - sbuf Triple, sbuf Output); + /* FIXME: The FileType is an enum.*/ + fn LLVMRustWriteOutputFile(PassManagerRef PM, ModuleRef M, + sbuf Triple, sbuf Output, + int FileType); /** Returns a string describing the last error caused by an LLVMRust* call. */ |