[LLVMdev] How to tell whether a GlobalValue is user-defined

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Aug 28 07:49:14 PDT 2014


> Rafael, would it be more correct to use hasLocalLinkage() instead of
> hasPrivateLinkage() ?

No, hasLocalLinkage covers InternalLinkage too. The difference from
private to internal is that internal shows up in the symbol table. For
private llvm mangles the name to add a L or l prefix which causes the
assembler (or linker) to omit it

Cheers,
Rafael



More information about the llvm-dev mailing list