diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-13 18:09:35 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-13 18:09:35 +0000 |
commit | 027b886a99bcf8cd88f2312ffc278e715565b956 (patch) | |
tree | 2cec92141dc34b2ce1d9eef4fe23ef3af4edf34a /clang/lib/Frontend/PCHWriter.cpp | |
parent | 784ae669ab3db1052b4d84bf155cccf9f9054475 (diff) | |
download | bcm5719-llvm-027b886a99bcf8cd88f2312ffc278e715565b956.tar.gz bcm5719-llvm-027b886a99bcf8cd88f2312ffc278e715565b956.zip |
Some early declarations to support sentinel attribute on
message dispatches (and function calls later). No change in
functionality.
llvm-svn: 71683
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index dbe0e536e55..e05a73568f4 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -1556,6 +1556,13 @@ void PCHWriter::WriteAttributeRecord(const Attr *Attr) { break; } + case Attr::Sentinel : { + const SentinelAttr *Sentinel = cast<SentinelAttr>(Attr); + Record.push_back(Sentinel->getSentinel()); + Record.push_back(Sentinel->getNullPos()); + break; + } + case Attr::GNUInline: case Attr::IBOutletKind: case Attr::NoReturn: |