mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Use the enum value of the attributes when adding them to the attributes builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -205,31 +205,8 @@ public:
|
||||
|
||||
uint64_t getAlignment() const;
|
||||
|
||||
void addAddressSafetyAttr();
|
||||
void addAlwaysInlineAttr();
|
||||
void addByValAttr();
|
||||
void addInlineHintAttr();
|
||||
void addInRegAttr();
|
||||
void addNakedAttr();
|
||||
void addNestAttr();
|
||||
void addNoAliasAttr();
|
||||
void addNoCaptureAttr();
|
||||
void addNoImplicitFloatAttr();
|
||||
void addNoInlineAttr();
|
||||
void addNonLazyBindAttr();
|
||||
void addNoRedZoneAttr();
|
||||
void addNoReturnAttr();
|
||||
void addNoUnwindAttr();
|
||||
void addOptimizeForSizeAttr();
|
||||
void addReadNoneAttr();
|
||||
void addReadOnlyAttr();
|
||||
void addReturnsTwiceAttr();
|
||||
void addSExtAttr();
|
||||
void addStackProtectAttr();
|
||||
void addStackProtectReqAttr();
|
||||
void addStructRetAttr();
|
||||
void addUWTableAttr();
|
||||
void addZExtAttr();
|
||||
void addAttribute(Attributes::AttrVal Val);
|
||||
void removeAttribute(Attributes::AttrVal Val);
|
||||
|
||||
void addAlignmentAttr(unsigned Align);
|
||||
void addStackAlignmentAttr(unsigned Align);
|
||||
@ -276,13 +253,16 @@ public:
|
||||
return hasAttribute(Attributes::StructRet);
|
||||
}
|
||||
|
||||
// Attribute query methods.
|
||||
// FIXME: StackAlignment & Alignment attributes have no predicate methods.
|
||||
/// @brief Return true if the attribute is present.
|
||||
bool hasAttribute(AttrVal Val) const;
|
||||
|
||||
/// @brief Return true if attributes exist
|
||||
bool hasAttributes() const {
|
||||
return Attrs.hasAttributes();
|
||||
}
|
||||
|
||||
/// @brief Return true if the attributes are a non-null intersection.
|
||||
bool hasAttributes(const Attributes &A) const;
|
||||
bool hasAttribute(AttrVal Val) const;
|
||||
|
||||
/// This returns the alignment field of an attribute as a byte alignment
|
||||
/// value.
|
||||
|
Reference in New Issue
Block a user