| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | MS ABI: Add a test for Unicode literals | David Majnemer | 2014-03-31 | 1 | -0/+2 |
| | | | | | | | | | | This adds coverage for Unicode code points which are encoded with non-zero values in the upper half of the wchar_t. No functionality change. llvm-svn: 205251 | ||||
| * | MS ABI: Eliminate Duplicate Strings | David Majnemer | 2014-03-24 | 1 | -0/+719 |
| | | | | | | | | | | | | | | | | | | | | | | | | | COFF doesn't have mergeable sections so LLVM/clang's normal tactics for string deduplication will not have any effect. To remedy this we place each string inside it's own section and mark the section as IMAGE_COMDAT_SELECT_ANY. However, we can only do this if the string has an external name that we can generate from it's contents. To be compatible with MSVC, we must use their scheme. Otherwise identical strings in translation units from clang may not be deduplicated with translation units in MSVC. This fixes PR18248. N.B. We will not attempt to do anything with a string literal which is not of type 'char' or 'wchar_t' because their compiler does not support unicode string literals as of this date. Further, we avoid doing this if either -fwritable-strings or -fsanitize=address are present. This reverts commit r204596. llvm-svn: 204675 | ||||
| * | Revert r204562,204566,204586,204587 as they broke ASan on Windows | Timur Iskhodzhanov | 2014-03-24 | 1 | -719/+0 |
| | | | | | llvm-svn: 204596 | ||||
| * | MS ABI: Add tests, other cleanups for r204562 | David Majnemer | 2014-03-24 | 1 | -0/+719 |
| 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! llvm-svn: 204586 | |||||

