]> granicus.if.org Git - clang/commit
MS ABI: Add tests, other cleanups for r204562
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Mar 2014 05:53:08 +0000 (05:53 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Mar 2014 05:53:08 +0000 (05:53 +0000)
commit8003a11f68baa49c5ee47ebefddd13dd6ce9efb8
tree027995c87df68d765e7d9c71911edd25aed14519
parentcda72f3bef6b2d90d77d7c2c92ad31bb15674ad4
MS ABI: Add tests, other cleanups for r204562

This commit cleans up a few accidents:
- Do not rely on the order in which StringLiteral lays out bytes.
- Use a more efficient mechanism for handling so-called
  "special-mappings" when mangling string literals.
- There is no need to allocate a copy of the mangled name.
- Add the test written for r204562.

Thanks to Richard Smith for pointing these out!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/MicrosoftMangle.cpp
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/mangle-ms-string-literals.cpp [new file with mode: 0644]