AST: Add AlignMac68kAttr, not yet used.

llvm-svn: 104800
This commit is contained in:
Daniel Dunbar 2010-05-27 02:25:39 +00:00
parent 4dbe15d437
commit fc6507ef58
4 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,7 @@ public:
enum Kind {
Alias,
Aligned,
AlignMac68k,
AlwaysInline,
AnalyzerNoReturn, // Clang-specific.
Annotate,
@ -207,6 +208,8 @@ public:
static bool classof(const MaxFieldAlignmentAttr *A) { return true; }
};
DEF_SIMPLE_ATTR(AlignMac68k);
class AlignedAttr : public Attr {
unsigned Alignment;
public:

View File

@ -74,6 +74,7 @@ void NonNullAttr::Destroy(ASTContext &C) {
// FIXME: Can we use variadic macro to define DEF_SIMPLE_ATTR_CLONE for
// "non-simple" classes?
DEF_SIMPLE_ATTR_CLONE(AlignMac68k)
DEF_SIMPLE_ATTR_CLONE(AlwaysInline)
DEF_SIMPLE_ATTR_CLONE(AnalyzerNoReturn)
DEF_SIMPLE_ATTR_CLONE(BaseCheck)

View File

@ -666,6 +666,7 @@ Attr *PCHReader::ReadAttributes() {
assert(0 && "Unknown attribute!");
break;
STRING_ATTR(Alias);
SIMPLE_ATTR(AlignMac68k);
UNSIGNED_ATTR(Aligned);
SIMPLE_ATTR(AlwaysInline);
SIMPLE_ATTR(AnalyzerNoReturn);

View File

@ -1836,6 +1836,9 @@ void PCHWriter::WriteAttributeRecord(const Attr *Attr) {
AddString(cast<AliasAttr>(Attr)->getAliasee(), Record);
break;
case Attr::AlignMac68k:
break;
case Attr::Aligned:
Record.push_back(cast<AlignedAttr>(Attr)->getAlignment());
break;