summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-01-10 12:58:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-01-10 12:58:08 +0000
commit55bcea1e65ea97efb782314605f01e3bca9706d0 (patch)
treebe67c9ed2f95facf346be289e231b9b2dba78c52 /clang/lib/Frontend/PCHReaderDecl.cpp
parent89b14a4309ec7c59a0dbb748aef088a661edbfe4 (diff)
downloadbcm5719-llvm-55bcea1e65ea97efb782314605f01e3bca9706d0.tar.gz
bcm5719-llvm-55bcea1e65ea97efb782314605f01e3bca9706d0.zip
Generalize target weirdness handling having proper layering in mind:
1. Add helper class for sema checks for target attributes 2. Add helper class for codegen of target attributes As a proof-of-concept - implement msp430's 'interrupt' attribute. llvm-svn: 93118
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 91568f182da..69343ed48c4 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -438,6 +438,9 @@ Attr *PCHReader::ReadAttributes() {
bool IsInherited = Record[Idx++];
switch (Kind) {
+ default:
+ assert(0 && "Unknown attribute!");
+ break;
STRING_ATTR(Alias);
UNSIGNED_ATTR(Aligned);
SIMPLE_ATTR(AlwaysInline);
OpenPOWER on IntegriCloud