diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-10 12:58:08 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-10 12:58:08 +0000 |
commit | 55bcea1e65ea97efb782314605f01e3bca9706d0 (patch) | |
tree | be67c9ed2f95facf346be289e231b9b2dba78c52 /clang/lib/Sema/TargetAttributesSema.h | |
parent | 89b14a4309ec7c59a0dbb748aef088a661edbfe4 (diff) | |
download | bcm5719-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/Sema/TargetAttributesSema.h')
-rw-r--r-- | clang/lib/Sema/TargetAttributesSema.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/clang/lib/Sema/TargetAttributesSema.h b/clang/lib/Sema/TargetAttributesSema.h new file mode 100644 index 00000000000..8794e4013ec --- /dev/null +++ b/clang/lib/Sema/TargetAttributesSema.h @@ -0,0 +1,27 @@ +//===--- TargetAttributesSema.h - Semantic Analysis For Target Attributes -===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef CLANG_SEMA_TARGETSEMA_H +#define CLANG_SEMA_TARGETSEMA_H + +namespace clang { + class Scope; + class Decl; + class Attr; + class Sema; + + class TargetAttributesSema { + public: + virtual ~TargetAttributesSema(); + virtual bool ProcessDeclAttribute(Scope *scope, Decl *D, + const AttributeList &Attr, Sema &S) const; + }; +} + +#endif |