[LLVMdev] Is $ not allowed in names?

Óscar Fuentes ofv at wanadoo.es
Thu Nov 7 07:20:12 PST 2013


edA-qa mort-ora-y <eda-qa at disemia.com> writes:

> I'm working on my exported symbols, where often I have to join names
> together (like module and function name). I'd been doing this with an
> underscore '_' and everything worked fine. I decided to switch to '$'
> and suddenly the JIT execution is causing segfaults (nothing else changes).
>
> Is the '$' character somehow special and not allowed in identifiers?

You are using MCJIT, aren't you?

As per

http://llvm.org/docs/LangRef.html#identifiers

`$' is a valid character on LLVM. However, MCJIT adds the naming
restrictions imposed by the object file spec it uses (ELF, IIRC). Which
is something quite nasty to do for a JIT engine, IMO.

[snip]




More information about the llvm-dev mailing list