diff options
| author | Graydon Hoare <[email protected]> | 2011-05-07 18:54:23 +0000 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-07 18:54:23 +0000 |
| commit | db3b9a4992c672d53070a1c8ddb4458a8696b057 (patch) | |
| tree | 03e80470bd3093ef53265d63a06dc7ae8593dc97 /src/comp/lib | |
| parent | rustc: Make llvm_err() conform to Postel's law a little better (diff) | |
| download | rust-db3b9a4992c672d53070a1c8ddb4458a8696b057.tar.xz rust-db3b9a4992c672d53070a1c8ddb4458a8696b057.zip | |
Stop stringifying integers to get integral constants.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 3d8e577c..80b216e6 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -864,6 +864,10 @@ native mod llvm = llvm_lib { /** Parses the bitcode in the given memory buffer. */ fn LLVMRustParseBitcode(MemoryBufferRef MemBuf) -> ModuleRef; + /** FiXME: Hacky adaptor for lack of ULongLong in FFI. */ + fn LLVMRustConstSmallInt(TypeRef IntTy, uint N, + Bool SignExtend) -> ValueRef; + /** Links LLVM modules together. `Src` is destroyed by this call and must never be referenced again. */ fn LLVMLinkModules(ModuleRef Dest, ModuleRef Src) -> Bool; |