OSDN Git Service

[CodeGen] Use an AttrBuilder to bulk remove 'target-cpu', 'target-features', and...
authorCraig Topper <craig.topper@intel.com>
Thu, 27 Aug 2020 19:32:17 +0000 (12:32 -0700)
committerCraig Topper <craig.topper@intel.com>
Thu, 27 Aug 2020 19:54:20 +0000 (12:54 -0700)
commit17ceda99d32035dc654b45ef7af62c571d8a8273
treed2cda09bce5497d48722cf416422987a8ff89b95
parentff260ad0e014516fbebb4b9f7bcd5e085ac37661
[CodeGen] Use an AttrBuilder to bulk remove 'target-cpu', 'target-features', and 'tune-cpu' before re-adding in CodeGenModule::setNonAliasAttributes.

I think the removeAttributes interface should be faster than
calling removeAttribute 3 times.
clang/lib/CodeGen/CodeGenModule.cpp