From e4310c8273a9f7f0f32fa180b02acf29a29aa18c Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 9 Nov 2009 18:38:53 +0000 Subject: Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGen unless we start implementing command-line switches which override the default calling convention, so the effect is mostly to silence unknown attribute warnings.) llvm-svn: 86571 --- clang/lib/Frontend/PCHWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Frontend/PCHWriter.cpp') diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index 436428b3755..82922a93b59 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -1768,6 +1768,9 @@ void PCHWriter::WriteAttributeRecord(const Attr *Attr) { Record.push_back(cast(Attr)->getType()); // FIXME: stable break; + case Attr::CDecl: + break; + case Attr::Cleanup: AddDeclRef(cast(Attr)->getFunctionDecl(), Record); break; -- cgit v1.2.3