[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR

Duncan Sands baldrick at free.fr
Tue Apr 9 04:01:59 PDT 2013


Hi,

On 09/04/13 11:56, Dong Chen wrote:
> hi, Duncan:
> thanks for your patience.
> i have tried it.
> using instuction: errs()<<i->getOperand(0);

   errs()<<*i->getOperand(0);

You can also use: i->getOperand(0)->dump();

Ciao, Duncan.

> but it prints the address: someting like 0x1139700;
> i checked the defination of getOperand() is Value* getOperand( unsigned int
> i);
> so is there someting i missed?
>
>
>
> --
> View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56579.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list