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 | |
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')
-rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 3 |
2 files changed, 5 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++]))); 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<BlocksAttr>(Attr)->getType()); // FIXME: stable break; + case Attr::CDecl: + break; + case Attr::Cleanup: AddDeclRef(cast<CleanupAttr>(Attr)->getFunctionDecl(), Record); break; |