From a907d36cfe8069ce191ffada3b84e37ca50e05b6 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Thu, 24 Feb 2022 10:40:20 -0500 Subject: Attributes: add a new `allocptr` attribute This continues the push away from hard-coded knowledge about functions towards attributes. We'll use this to annotate free(), realloc() and cousins and obviate the hard-coded list of free functions. Differential Revision: https://reviews.llvm.org/D123083 --- 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 2a091a9..f86504f 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -652,6 +652,7 @@ lltok::Kind LLLexer::LexIdentifier() { KEYWORD(inreg); KEYWORD(jumptable); KEYWORD(minsize); + KEYWORD(allocptr); KEYWORD(naked); KEYWORD(nest); KEYWORD(noalias); -- cgit v1.1