[LLVMdev] va_start
Manoel Teixeira
manoel at fonetica.com.br
Tue Mar 24 16:50:11 PDT 2009
Hi,
When I try to use va_start(ptr), I got the following problem :
Type *Tys = Type::VoidTy;
Or
Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :
if (Len == 13 && !memcmp(Name, "llvm.va_start", 13)) return Intrinsic::vastart;
Thanks,
Manoel Teixeira
More information about the llvm-dev
mailing list