diff options
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index b1705f10ae3..b57695199f9 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); +} |
