From db3b9a4992c672d53070a1c8ddb4458a8696b057 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sat, 7 May 2011 18:54:23 +0000 Subject: Stop stringifying integers to get integral constants. --- src/comp/lib/llvm.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/comp/lib') 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; -- cgit v1.2.3