mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
Do not check isDeclaration() in hasNote(). It is clients' responsibility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1297,23 +1297,23 @@ OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; }
|
||||
FuncNoteList : FuncNote { $$ = $1; }
|
||||
| FuncNoteList ',' FuncNote {
|
||||
unsigned tmp = $1 | $3;
|
||||
if ($3 == ParamAttr::FN_NOTE_NoInline
|
||||
&& ($1 & ParamAttr::FN_NOTE_AlwaysInline))
|
||||
if ($3 == FN_NOTE_NoInline
|
||||
&& ($1 & FN_NOTE_AlwaysInline))
|
||||
GEN_ERROR("Function Notes may include only one inline notes!")
|
||||
if ($3 == ParamAttr::FN_NOTE_AlwaysInline
|
||||
&& ($1 & ParamAttr::FN_NOTE_NoInline))
|
||||
if ($3 == FN_NOTE_AlwaysInline
|
||||
&& ($1 & FN_NOTE_NoInline))
|
||||
GEN_ERROR("Function Notes may include only one inline notes!")
|
||||
$$ = tmp;
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
;
|
||||
|
||||
FuncNote : INLINE '=' NEVER { $$ = ParamAttr::FN_NOTE_NoInline; }
|
||||
| INLINE '=' ALWAYS { $$ = ParamAttr::FN_NOTE_AlwaysInline; }
|
||||
| OPTIMIZEFORSIZE { $$ = ParamAttr::FN_NOTE_OptimizeForSize; }
|
||||
FuncNote : INLINE '=' NEVER { $$ = FN_NOTE_NoInline; }
|
||||
| INLINE '=' ALWAYS { $$ = FN_NOTE_AlwaysInline; }
|
||||
| OPTIMIZEFORSIZE { $$ = FN_NOTE_OptimizeForSize; }
|
||||
;
|
||||
|
||||
OptFuncNotes : /* empty */ { $$ = ParamAttr::FN_NOTE_None; }
|
||||
OptFuncNotes : /* empty */ { $$ = FN_NOTE_None; }
|
||||
| FNNOTE '(' FuncNoteList ')' {
|
||||
$$ = $3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user