]> granicus.if.org Git - clang/commit
[MS] Use mangled names and comdats for string merging with ASan
authorReid Kleckner <rnk@google.com>
Mon, 11 Jun 2018 16:49:43 +0000 (16:49 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 11 Jun 2018 16:49:43 +0000 (16:49 +0000)
commit5083d1e70982308a1b7773edaa19da73d2834dd3
treeb7f962ae3e098bbb2c9cb51e2ccb2455d6b2864b
parent638e493dcac9873d12a33a04753b3ef99fbf0b1c
[MS] Use mangled names and comdats for string merging with ASan

This should reduce the binary size penalty of ASan on Windows. After
r334313, ASan will add red zones to globals in comdats, so we will still
find OOB accesses to string literals.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp