[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l llvmAsmParser.y
Reid Spencer
reid at x10sys.com
Wed Mar 21 19:13:43 PDT 2007
Changes in directory llvm/lib/AsmParser:
Lexer.l updated: 1.100 -> 1.101
llvmAsmParser.y updated: 1.331 -> 1.332
---
Log message:
Add support for the noreturn and nounwind function attributes.
---
Diffs of the changes: (+4 -1)
Lexer.l | 2 ++
llvmAsmParser.y | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/AsmParser/Lexer.l
diff -u llvm/lib/AsmParser/Lexer.l:1.100 llvm/lib/AsmParser/Lexer.l:1.101
--- llvm/lib/AsmParser/Lexer.l:1.100 Fri Mar 9 13:26:52 2007
+++ llvm/lib/AsmParser/Lexer.l Wed Mar 21 21:13:23 2007
@@ -235,6 +235,8 @@
inreg { return INREG; }
sret { return SRET; }
+nounwind { return NOUNWIND; }
+noreturn { return NORETURN; }
void { RET_TY(Type::VoidTy, VOID); }
float { RET_TY(Type::FloatTy, FLOAT); }
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.331 llvm/lib/AsmParser/llvmAsmParser.y:1.332
--- llvm/lib/AsmParser/llvmAsmParser.y:1.331 Tue Mar 20 12:18:33 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Mar 21 21:13:23 2007
@@ -1078,7 +1078,7 @@
%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 @@
;
FuncAttr : NORETURN { $$ = FunctionType::NoReturnAttribute; }
+ | NOUNWIND { $$ = FunctionType::NoUnwindAttribute; }
| ParamAttr
;
More information about the llvm-commits
mailing list