[LLVMdev] Is $ not allowed in names?

Óscar Fuentes ofv at wanadoo.es
Thu Nov 7 11:56:59 PST 2013


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

> On 07/11/13 16:20, Óscar Fuentes wrote:
>> You are using MCJIT, aren't you?
>
> I'm using the JIT created by "EngineBuilder.setEngineKind(
> EngineKind::JIT )". Is that MCJIT?

No, unless you also use

    EngineBuilder.setUseMCJIT(true);

>> `$' 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.
>
> I thought $ was a safe character on my platform (Linux x86_64), since it
> does keep it in the symbol tables.

If `$' is admisible for ELF or you are not using MCJIT, there is a bug
either on LLVM or on your code.

> Any idea on where to get a list of the restrictions for a platform?

I guess that googling for "ELF format" will turn useful results.




More information about the llvm-dev mailing list