diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:38:53 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:38:53 +0000 |
commit | e4310c8273a9f7f0f32fa180b02acf29a29aa18c (patch) | |
tree | dfcdea44409291535faa78fde22575ea0fe0f102 /clang/lib/Frontend/PCHReaderDecl.cpp | |
parent | a8ab71bad7826ef51a90fba29f50cc5a37eafadf (diff) | |
download | bcm5719-llvm-e4310c8273a9f7f0f32fa180b02acf29a29aa18c.tar.gz bcm5719-llvm-e4310c8273a9f7f0f32fa180b02acf29a29aa18c.zip |
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
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index b9ece21f74c..775ce76c92d 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/lib/Frontend/PCHReaderDecl.cpp @@ -442,6 +442,8 @@ Attr *PCHReader::ReadAttributes() { (BlocksAttr::BlocksAttrTypes)Record[Idx++]); break; + SIMPLE_ATTR(CDecl); + case Attr::Cleanup: New = ::new (*Context) CleanupAttr( cast<FunctionDecl>(GetDecl(Record[Idx++]))); |