mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Add missing attributes to cpp backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
323200d905
commit
32bb4dfd19
@ -471,14 +471,22 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
|
||||
HANDLE_ATTR(Nest);
|
||||
HANDLE_ATTR(ReadNone);
|
||||
HANDLE_ATTR(ReadOnly);
|
||||
HANDLE_ATTR(InlineHint);
|
||||
HANDLE_ATTR(NoInline);
|
||||
HANDLE_ATTR(AlwaysInline);
|
||||
HANDLE_ATTR(OptimizeForSize);
|
||||
HANDLE_ATTR(StackProtect);
|
||||
HANDLE_ATTR(StackProtectReq);
|
||||
HANDLE_ATTR(NoCapture);
|
||||
HANDLE_ATTR(NoRedZone);
|
||||
HANDLE_ATTR(NoImplicitFloat);
|
||||
HANDLE_ATTR(Naked);
|
||||
HANDLE_ATTR(InlineHint);
|
||||
#undef HANDLE_ATTR
|
||||
if (attrs & Attribute::StackAlignment)
|
||||
Out << " | Attribute::constructStackAlignmentFromInt("
|
||||
<< Attribute::getStackAlignmentFromAttrs(attrs)
|
||||
<< ")";
|
||||
attrs &= ~Attribute::StackAlignment;
|
||||
assert(attrs == 0 && "Unhandled attribute!");
|
||||
Out << ";";
|
||||
nl(Out);
|
||||
|
Loading…
Reference in New Issue
Block a user