[PATCH] [-cxx-abi microsoft] Mangle local TagDecls appropriately

David Majnemer david.majnemer at gmail.com
Wed Aug 28 01:41:17 PDT 2013


Hi rnk, rsmith, rjmccall,

When selecting a mangling for an anonymous tag type:
- We should first try it's typedef'd name.
- If that doesn't work, we should mangle in the name of the declarator
  that specified it as a declaration specifier.
- If that doesn't work, fall back to a static mangling of
  <unnamed-type>.

This should make our anonymous type mangling compatible.

This partially fixes PR16994; we would need to have an implementation of
scope numbering to get it right (a separate issue).

http://llvm-reviews.chandlerc.com/D1540

Files:
  include/clang/AST/Decl.h
  lib/AST/Decl.cpp
  lib/AST/MicrosoftMangle.cpp
  lib/Sema/SemaDecl.cpp
  lib/Serialization/ASTReaderDecl.cpp
  lib/Serialization/ASTWriterDecl.cpp
  test/CodeGenCXX/mangle-ms.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1540.1.patch
Type: text/x-patch
Size: 8452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130828/80ce26e3/attachment.bin>


More information about the cfe-commits mailing list