Get rid of AttributeList in the AST and use the new Attr class instead
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47155 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 55abe6f..0ed028c 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -13,6 +13,7 @@
#include "clang/AST/Decl.h"
#include "clang/AST/DeclObjC.h"
+#include "clang/AST/Attr.h"
#include "clang/Basic/IdentifierTable.h"
using namespace clang;
@@ -258,6 +259,11 @@
return "";
}
+void ValueDecl::addAttr(Attr *attr)
+{
+ attr->setNext(Attrs);
+ Attrs = attr;
+}
FunctionDecl::~FunctionDecl() {
delete[] ParamInfo;