aboutsummaryrefslogtreecommitdiff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index b1705f10..b5769519 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -116,3 +116,8 @@ extern "C" const char *LLVMRustGetHostTriple(void)
static std::string str = llvm::sys::getHostTriple();
return str.c_str();
}
+
+extern "C" LLVMValueRef LLVMRustConstSmallInt(LLVMTypeRef IntTy, unsigned N,
+ LLVMBool SignExtend) {
+ return LLVMConstInt(IntTy, (unsigned long long)N, SignExtend);
+}