blob: 23050d778b8c704b63cb73e25fb118548cdf1ef7 [file] [log] [blame]
Steve Naroffb8371e12007-06-09 03:39:29 +00001//===--- AttributeList.cpp --------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Steve Naroff and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the AttributeList class implementation
11//
12//===----------------------------------------------------------------------===//
13
14#include "clang/Parse/AttributeList.h"
15#include "clang/Lex/IdentifierTable.h"
16using namespace llvm;
17using namespace clang;
18
19AttributeList::AttributeList(IdentifierInfo *aName, SourceLocation aLoc,
20 IdentifierInfo *pName, SourceLocation pLoc,
21 Action::ExprTy **elist, unsigned numargs,
22 AttributeList *n)
23 : AttrName(aName), AttrLoc(aLoc), ParmName(pName), ParmLoc(pLoc),
24 NumArgs(numargs), Next(n) {
25 Args = new Action::ExprTy*[numargs];
26 for (unsigned i = 0; i != numargs; ++i)
27 Args[i] = elist[i];
28}