summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/keep-static-consts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change keep-static-consts to work on static storage duration, notErich Keane2018-10-251-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 theseElizabeth Andrews2018-08-221-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
OpenPOWER on IntegriCloud