[LLVMdev] va_start
    Manoel Teixeira 
    manoel at fonetica.com.br
       
    Tue Mar 24 16:32:36 PDT 2009
    
    
  
Hi,
When I try to use va_start(ptr), I got the following problem :
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