Stop stringifying integers to get integral constants.

This commit is contained in:
Graydon Hoare 2011-05-07 18:54:23 +00:00
parent a71fda40b8
commit db3b9a4992
4 changed files with 43 additions and 32 deletions

View file

@ -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);
}