Fix invalid prototype after switches to size_t instead of unsigned int.

This commit is contained in:
Siu Kwan Lam 2012-09-10 17:22:20 -07:00
commit 5ee6bba66b
3 changed files with 7 additions and 7 deletions

View file

@ -254,7 +254,7 @@ void LLVMDisposeTargetMachine(LLVMTargetMachineRef tm){
unsigned char* LLVMTargetMachineEmitFile(LLVMTargetMachineRef tmref,
LLVMModuleRef modref,
int assembly, unsigned * lenp,
int assembly, size_t * lenp,
std::string &error)
{
using namespace llvm;
@ -352,7 +352,7 @@ LLVMTargetDataRef LLVMTargetMachineGetTargetData(LLVMTargetMachineRef tm)
}
unsigned char* LLVMGetNativeCodeFromModule(LLVMModuleRef module, int assembly,
unsigned * lenp, std::string &error)
size_t * lenp, std::string &error)
{
using namespace llvm;
assert(lenp);
@ -988,7 +988,7 @@ unsigned LLVMLinkModules(LLVMModuleRef dest, LLVMModuleRef src, unsigned int mod
}
#endif
unsigned char *LLVMGetBitcodeFromModule(LLVMModuleRef module, unsigned *lenp)
unsigned char *LLVMGetBitcodeFromModule(LLVMModuleRef module, size_t *lenp)
{
assert(lenp);