[LLVMbugs] [Bug 23325] New: [ms] manging mismatch with cl

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 22 21:04:55 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23325

            Bug ID: 23325
           Summary: [ms] manging mismatch with cl
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This is mangled differently by clang-cl and cl:

struct SkPoint {};
class SkXfermode {};
class SkPaint {};

class SkCanvas {
 protected:
  void onDrawPatch(const SkPoint cubics[12], const SkPoint texCoords[4],
                   SkXfermode* xmode, const SkPaint& paint);
};

void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkPoint
texCoords[4],
                           SkXfermode* xmode, const SkPaint& paint) {}



>..\..\llvm-rw-build-rel\bin\clang-cl /c test.cc
>dumpbin /symbols test.obj
...
009 00000000 SECT1  notype ()    External     |
?onDrawPatch at SkCanvas@@IAEXQBUSkPoint@@QBU2 at PAVSkXfermode@@@Z



> cl /c test.cc
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cc

>dumpbin /symbols test.obj
...
008 00000000 SECT3  notype ()    External     |
?onDrawPatch at SkCanvas@@IAEXQBUSkPoint@@0PAVSkXfermode@@@Z



(The two manglings do demangle to the same thing though :-/)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150423/5eded353/attachment.html>


More information about the llvm-bugs mailing list