mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
s/FP_AlwaysInline/FN_NOTE_AlwaysInline/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1297,21 +1297,21 @@ OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; }
|
||||
FuncNoteList : FuncNote { $$ = $1; }
|
||||
| FuncNoteList ',' FuncNote {
|
||||
FunctionNotes tmp = $1 | $3;
|
||||
if ($3 == FP_NoInline && ($1 & FP_AlwaysInline))
|
||||
if ($3 == FN_NOTE_NoInline && ($1 & FN_NOTE_AlwaysInline))
|
||||
GEN_ERROR("Function Notes may include only one inline notes!")
|
||||
if ($3 == FP_AlwaysInline && ($1 & FP_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 { $$ = FP_NoInline; }
|
||||
| INLINE '=' ALWAYS { $$ = FP_AlwaysInline; }
|
||||
| OPTIMIZEFORSIZE { $$ = FP_OptimizeForSize; }
|
||||
FuncNote : INLINE '=' NEVER { $$ = FN_NOTE_NoInline; }
|
||||
| INLINE '=' ALWAYS { $$ = FN_NOTE_AlwaysInline; }
|
||||
| OPTIMIZEFORSIZE { $$ = FN_NOTE_OptimizeForSize; }
|
||||
;
|
||||
|
||||
OptFuncNotes : /* empty */ { $$ = FP_None; }
|
||||
OptFuncNotes : /* empty */ { $$ = FN_NOTE_None; }
|
||||
| FNNOTE '(' FuncNoteList ')' {
|
||||
$$ = $3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user