Stop stringifying integers to get integral constants.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user