mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Change typeIncompatible to return an AttrBuilder instead of new-ing an AttributeSet.
This makes use of the new API which can remove attributes from a set given a builder. This is much faster than creating a temporary set and reduces llc time by about 0.3% which was all spent creating temporary attributes sets on the context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -565,7 +565,7 @@ public:
|
||||
namespace AttributeFuncs {
|
||||
|
||||
/// \brief Which attributes cannot be applied to a type.
|
||||
AttributeSet typeIncompatible(Type *Ty, uint64_t Index);
|
||||
AttrBuilder typeIncompatible(const Type *Ty);
|
||||
|
||||
} // end AttributeFuncs namespace
|
||||
|
||||
|
Reference in New Issue
Block a user