diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-09-17 22:21:27 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-09-17 22:21:27 +0000 |
| commit | 075404782734005e4742621ba4fa29e334cd4987 (patch) | |
| tree | 155876dd4911c24d7bc0c38e7faf8d07e4a55173 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 641645f00c22e1f55794537a43646214402e99a1 (diff) | |
| download | clang-075404782734005e4742621ba4fa29e334cd4987.tar.gz clang-075404782734005e4742621ba4fa29e334cd4987.tar.bz2 clang-075404782734005e4742621ba4fa29e334cd4987.tar.xz | |
[-cxx-abi microsoft] Mangle local TagDecls appropriately
Summary:
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).
Reviewers: rnk, rsmith, rjmccall, cdavis5x
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1540
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
