diff options
author | Reid Spencer <reid@x10sys.com> | 2007-07-31 02:57:37 +0000 |
---|---|---|
committer | Reid Spencer <reid@x10sys.com> | 2007-07-31 02:57:37 +0000 |
commit | 2abbad988fdef45c1bc119d8b37c4a7b598ec749 (patch) | |
tree | 58715d49baaa4072b55d6099f1cb0f8b3f686795 /lib/AsmParser/llvmAsmParser.y | |
parent | eec0d37ad65e792ae4e5dfb41d0460f4c46acab9 (diff) | |
download | external_llvm-2abbad988fdef45c1bc119d8b37c4a7b598ec749.zip external_llvm-2abbad988fdef45c1bc119d8b37c4a7b598ec749.tar.gz external_llvm-2abbad988fdef45c1bc119d8b37c4a7b598ec749.tar.bz2 |
For PR1553:
Make the AsmParser auto-upgrade the old zext and sext
keywords for parameter attributes and handle the
end-of-line ambiguity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 0cc7a98..fd2713f 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1225,7 +1225,9 @@ OptCallingConv : /*empty*/ { $$ = CallingConv::C; } | }; ParamAttr : ZEROEXT { $$ = ParamAttr::ZExt; } + | ZEXT { $$ = ParamAttr::ZExt; } | SIGNEXT { $$ = ParamAttr::SExt; } + | SEXT { $$ = ParamAttr::SExt; } | INREG { $$ = ParamAttr::InReg; } | SRET { $$ = ParamAttr::StructRet; } | NOALIAS { $$ = ParamAttr::NoAlias; } |