mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Change ForceSizeOpt attribute into MinSize attribute
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -953,7 +953,7 @@ bool LLParser::ParseOptionalAttrs(AttrBuilder &B, unsigned AttrKind) {
|
||||
case lltok::kw_naked: B.addAttribute(Attributes::Naked); break;
|
||||
case lltok::kw_nonlazybind: B.addAttribute(Attributes::NonLazyBind); break;
|
||||
case lltok::kw_address_safety: B.addAttribute(Attributes::AddressSafety); break;
|
||||
case lltok::kw_forcesizeopt: B.addAttribute(Attributes::ForceSizeOpt); break;
|
||||
case lltok::kw_minsize: B.addAttribute(Attributes::MinSize); break;
|
||||
|
||||
case lltok::kw_alignstack: {
|
||||
unsigned Alignment;
|
||||
@@ -1012,7 +1012,7 @@ bool LLParser::ParseOptionalAttrs(AttrBuilder &B, unsigned AttrKind) {
|
||||
case lltok::kw_nonlazybind:
|
||||
case lltok::kw_returns_twice:
|
||||
case lltok::kw_address_safety:
|
||||
case lltok::kw_forcesizeopt:
|
||||
case lltok::kw_minsize:
|
||||
if (AttrKind != 2)
|
||||
HaveError |= Error(AttrLoc, "invalid use of function-only attribute");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user