[cfe-dev] Strange character around function declared with "asm"

John McCall rjmccall at apple.com
Mon Dec 6 09:37:36 PST 2010


On Dec 6, 2010, at 8:34 AM, Lorenzo De Carli wrote:
> This may be a solution, but I feel it is somewhat limited. If someone
> could point me to the portion of code that generates the operands for
> call, I could do a quick hack to avoid prefixing symbols when they
> start with "llvm." (as it is probably done in llvm.gcc). I acknowledge
> that it is a ugly hack, but as I said it would be good enough for my
> purpose (and I would not submit it upstream anyway).

It's not specific to calls;  what you want is the code that sets up the
modified function name, which is lib/CodeGen/Mangle.cpp:322.

John.



More information about the cfe-dev mailing list