[LLVMdev] Extracting all BasicBlocks of a Function into new Function

Bram Adams bram.adams at ugent.be
Tue Oct 3 12:24:36 PDT 2006


Op 3-okt-06, om 20:48 heeft Chris Lattner het volgende geschreven:

> You'd have to change it to something like:
> void foo(int X, ...) {
>    P = va_start();
>    bar(X, P);
> }
> void bar(int X, valist P) {
>    use(P);
> }

Can the other va_...-intrinsics be used in bar as were the "P =  
va_start" in bar? The va_start probably is unnecessary now in bar,  
but where dus the va_end need to be: at the end of foo or of bar or  
doesn't it matter?

Thanks for the remark,

Bram Adams
GH-SEL, INTEC, Ghent University (Belgium)

More information about the llvm-dev mailing list