Correctly remove OptimizeForSize from functions marked OptimizeNone.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 24 Nov 2014 20:51:42 +0000 (20:51 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 24 Nov 2014 20:51:42 +0000 (20:51 +0000)
commit4ece68258609ddfa5a4b7ceac1427c2626925230
tree1ab3a1402b09cc423d860df7f8722c7753d84006
parentffbfcf29f24aa376f86203d3c34a9f0eb15d2086
Correctly remove OptimizeForSize from functions marked OptimizeNone.
This allows using __attribute__((optnone)) and the -Os/-Oz options.
Fixes PR21604.

llvm-svn: 222683
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/attr-optnone.c
clang/test/CodeGenCXX/optnone-def-decl.cpp [new file with mode: 0644]