aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-05-13 18:09:35 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-05-13 18:09:35 +0000
commit5b53005fb9ef24b8bdfe995f29b4662de468128a (patch)
tree4cf8977db699190b663a82fa036fc8b825571ce3 /lib/Frontend/PCHWriter.cpp
parentcfe858aa7c2ad7005c614772c7cfceb1525996cb (diff)
Some early declarations to support sentinel attribute on
message dispatches (and function calls later). No change in functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r--lib/Frontend/PCHWriter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp
index dbe0e536e5..e05a73568f 100644
--- a/lib/Frontend/PCHWriter.cpp
+++ b/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: