Force Remove Attribute
authorKyungwoo Lee <kyulee.llvm@gmail.com>
Wed, 19 Aug 2020 21:28:06 +0000 (17:28 -0400)
committerPuyan Lotfi <puyan@puyan.org>
Wed, 19 Aug 2020 21:30:13 +0000 (17:30 -0400)
commit7a028fe7029592e2edb3ce98a2ee5dc3c31e57de
tree400b22a17547cb11a9c7034674ee1bca68367628
parent6f3511a01a5227358a334803c264cfce4175ca5d
Force Remove Attribute

-force-attribute adds an attribute to function via command-line.
However, there was no counter-part to remove an attribute.  This patch
adds -force-remove-attribute that removes an attribute from function.

Differential Revision: https://reviews.llvm.org/D85586
llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp
llvm/test/Transforms/ForcedFunctionAttrs/forced.ll