]> granicus.if.org Git - clang/commit
Instead of having -Os/-Oz add OptimizeForSize/MinSize first, and later
authorPaul Robinson <paul_robinson@playstation.sony.com>
Thu, 11 Dec 2014 20:14:04 +0000 (20:14 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Thu, 11 Dec 2014 20:14:04 +0000 (20:14 +0000)
commit161fab8917bbd51cc7ec9a82db93375cb55e95d4
tree197bf8ceb28c0a831705f141ba9f197f3ab44917
parent70cbabae2254037475bd93211f18acda558a9f9e
Instead of having -Os/-Oz add OptimizeForSize/MinSize first, and later
having OptimizeNone remove them again, just don't add them in the
first place if the function already has OptimizeNone.

Note that MinSize can still appear due to attributes on different
declarations; a future patch will address that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/attr-optnone.c
test/SemaCXX/pragma-optimize.cpp