forked from OSchip/llvm-project
parent
4dbe15d437
commit
fc6507ef58
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue