Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change keep-static-consts to work on static storage duration, not | Erich Keane | 2018-10-25 | 1 | -1/+6 |
| | | | | | | | | | | storage class. To be more in line with what GCC does, switch the condition to be based on the Static Storage duration instead of the storage class. Change-Id: I8e959d762433cda48855099353bf3c950b9d54b8 llvm-svn: 345302 | ||||
* | Currently clang does not emit unused static constants. GCC emits these | Elizabeth Andrews | 2018-08-22 | 1 | -0/+6 |
constants by default when there is no optimization. GCC's option -fno-keep-static-consts can be used to not emit unused static constants. In Clang, since default behavior does not keep unused static constants, -fkeep-static-consts can be used to emit these if required. This could be useful for producing identification strings like SVN identifiers inside the object file even though the string isn't used by the program. Differential Revision: https://reviews.llvm.org/D40925 llvm-svn: 340439 |