[LLVMdev] Printing Function Arguments

Jeffrey Yasskin jyasskin at google.com
Mon Sep 28 08:40:59 PDT 2009

On Sun, Sep 27, 2009 at 10:05 PM, ivtm <martinaide1 at yahoo.com> wrote:
> Btw, also the cout << I->getName() returns an empty string for some reason.
> I tried I->getName().c_str(), but still the same.

It's legal for an instruction to have an empty name. If it has a name,
you get %the_name in the output assembly. If it doesn't, you get %0,
%1, %2, etc. in sequence.

More information about the llvm-dev mailing list