[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Nov 25 09:13:56 PST 2011


> I've been unable thus far to find out exactly where this occurs. And
> once I do find it, I'm not sure of the correct fix. I assume that LLVM
> mangles the '?' because it means something special in the gas syntax.
> There also has to be a way to communicate to llvm from clang that this
> symbol should not receive a prepended _.

You can prepend a \01. That is what is done with inline assembly.

I would love to remove all mangling from the LLVM IL, but last I
mentioned sabre wanted to keep at the lest the prepending of '_'. Not
sure about the rest (like expanding ?).

> Thanks,
>
> - Michael Spencer

Cheers,
Rafael



More information about the llvm-dev mailing list