[llvm-commits] [llvm] r98384 - in /llvm/trunk: include/llvm/MC/MCAsmInfo.h lib/MC/MCAsmInfo.cpp lib/MC/MCAsmInfoCOFF.cpp lib/Target/Mangler.cpp lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp lib/Target/X86/AsmPrinter/X86MCInstLower.cpp lib/Target/X8

Anton Korobeynikov anton at korobeynikov.info
Fri Mar 12 14:05:15 PST 2010


Hi, Chris

> +      // fastcall functions need to start with @.
> +      // FIXME: This logic seems unlikely to be right.
> +      if (CC == CallingConv::X86_FastCall) {
> +        if (OutName[0] == '_')
> +          OutName[0] = '@';
> +        else
> +          OutName.insert(OutName.begin(), '@');
No, the logic is correct. We mangle foo to _foo at N for stdcall and
@foo at N for fastcall. However, if there is not underscore in the
beginning of the mangled name we should add @ as well. This ugly, yes
:(

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-commits mailing list