[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]

David Nadlinger code at klickverbot.at
Wed Feb 20 09:27:27 PST 2013


On Tue, Feb 19, 2013 at 2:13 PM, Duncan Sands <baldrick at free.fr> wrote:
>> My question: Is there an easy way of disabling the name-mangling part
>> but keep the rest of the CC that I missed?
> if you use "\1" + "usual name", it will disable name mangling if you are
> lucky.  A leading \1 is LLVM's way of saying: leave this name alone!

Seems like I'm out of luck - the @<n> suffix is added
(AddFastCallStdCallSuffix) in the GlobalValue
Magnler::getNameWithPrefix overload, without paying respect to whether
the name originally had a '\1' prefix or not.

Should this be changed?

David



More information about the llvm-dev mailing list