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

Rafael Espíndola
2014-08-28T14:49:14Z

> 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