From 9bfd0d03e92d4bbb0ebf6171f5e0692edf9820c3 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Fri, 1 Apr 2016 21:41:15 +0000 Subject: Swift Calling Convention: add swifterror attribute. A ``swifterror`` attribute can be applied to a function parameter or an AllocaInst. This commit does not include any target-specific change. The target-specific optimization will come as a follow-up patch. Differential Revision: http://reviews.llvm.org/D18092 llvm-svn: 265189 --- llvm/lib/AsmParser/LLLexer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/AsmParser/LLLexer.cpp') diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index 5ad5ddd52a0..0f4a6eb8109 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -648,6 +648,7 @@ lltok::Kind LLLexer::LexIdentifier() { KEYWORD(sanitize_address); KEYWORD(sanitize_thread); KEYWORD(sanitize_memory); + KEYWORD(swifterror); KEYWORD(swiftself); KEYWORD(uwtable); KEYWORD(zeroext); -- cgit v1.2.3