mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Transforms: Canonicalize access to function attributes, NFC
Canonicalize access to function attributes to use the simpler API. getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind) => getFnAttribute(Kind) getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind) => hasFnAttribute(Kind) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -213,9 +213,8 @@ namespace {
|
||||
|
||||
PartialThreshold = UserThreshold ? CurrentThreshold : UP.PartialThreshold;
|
||||
if (!UserThreshold &&
|
||||
L->getHeader()->getParent()->getAttributes().
|
||||
hasAttribute(AttributeSet::FunctionIndex,
|
||||
Attribute::OptimizeForSize)) {
|
||||
L->getHeader()->getParent()->hasFnAttribute(
|
||||
Attribute::OptimizeForSize)) {
|
||||
Threshold = UP.OptSizeThreshold;
|
||||
PartialThreshold = UP.PartialOptSizeThreshold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user