]> granicus.if.org Git - clang/commit
Generalize target weirdness handling having proper layering in mind:
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 10 Jan 2010 12:58:08 +0000 (12:58 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 10 Jan 2010 12:58:08 +0000 (12:58 +0000)
commit82d0a418c8699fc6f4a9417457ffe93d43bba1c1
treee0ee69587ef2122adc4528807f5899519b8f40e3
parent82bac50fc0ab125ff5b4308ee91a731e3761eb63
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93118 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/AST/Attr.h
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/CodeGenTypes.h
lib/CodeGen/TargetInfo.cpp
lib/CodeGen/TargetInfo.h [new file with mode: 0644]
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriter.cpp
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaDeclAttr.cpp
lib/Sema/TargetAttributesSema.cpp [new file with mode: 0644]
lib/Sema/TargetAttributesSema.h [new file with mode: 0644]