mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
s/hasAttribute/contains/g to be more consistent with other method names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -479,7 +479,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL,
|
||||
Out << " {\n AttrBuilder B;\n";
|
||||
|
||||
#define HANDLE_ATTR(X) \
|
||||
if (attrs.hasAttribute(Attribute::X)) \
|
||||
if (attrs.contains(Attribute::X)) \
|
||||
Out << " B.addAttribute(Attribute::" #X ");\n"; \
|
||||
attrs.removeAttribute(Attribute::X);
|
||||
|
||||
@@ -509,7 +509,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL,
|
||||
HANDLE_ATTR(NonLazyBind);
|
||||
HANDLE_ATTR(MinSize);
|
||||
#undef HANDLE_ATTR
|
||||
if (attrs.hasAttribute(Attribute::StackAlignment))
|
||||
if (attrs.contains(Attribute::StackAlignment))
|
||||
Out << " B.addStackAlignmentAttr(" << attrs.getStackAlignment() << ")\n";
|
||||
attrs.removeAttribute(Attribute::StackAlignment);
|
||||
assert(!attrs.hasAttributes() && "Unhandled attribute!");
|
||||
|
Reference in New Issue
Block a user