mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add support for the noreturn and nounwind function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1078,7 +1078,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
|
||||
%token <OtherOpVal> EXTRACTELEMENT INSERTELEMENT SHUFFLEVECTOR
|
||||
|
||||
// Function Attributes
|
||||
%token NORETURN INREG SRET
|
||||
%token NORETURN INREG SRET NOUNWIND
|
||||
|
||||
// Visibility Styles
|
||||
%token DEFAULT HIDDEN
|
||||
@@ -1204,6 +1204,7 @@ OptParamAttrs : /* empty */ { $$ = FunctionType::NoAttributeSet; }
|
||||
;
|
||||
|
||||
FuncAttr : NORETURN { $$ = FunctionType::NoReturnAttribute; }
|
||||
| NOUNWIND { $$ = FunctionType::NoUnwindAttribute; }
|
||||
| ParamAttr
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user