Stop stringifying integers to get integral constants.
This commit is contained in:
parent
a71fda40b8
commit
db3b9a4992
4 changed files with 43 additions and 32 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue