Change keep-static-consts to work on static storage duration, not
authorErich Keane <erich.keane@intel.com>
Thu, 25 Oct 2018 19:13:46 +0000 (19:13 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 25 Oct 2018 19:13:46 +0000 (19:13 +0000)
commit85822b304ef048b6a026e2dd0a8571c2da729d2d
tree97b12799a2c9ea54e8ae96a02dfd08b81c7e4833
parentd4bf99a540e73b1e8948d10eecb533b6a3e40457
Change keep-static-consts to work on static storage duration, not
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
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/keep-static-consts.cpp