Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 1 | //===--- 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" |
| 16 | using namespace clang; |
| 17 | |
| 18 | AttributeList::AttributeList(IdentifierInfo *aName, SourceLocation aLoc, |
| 19 | IdentifierInfo *pName, SourceLocation pLoc, |
| 20 | Action::ExprTy **elist, unsigned numargs, |
| 21 | AttributeList *n) |
| 22 | : AttrName(aName), AttrLoc(aLoc), ParmName(pName), ParmLoc(pLoc), |
| 23 | NumArgs(numargs), Next(n) { |
| 24 | Args = new Action::ExprTy*[numargs]; |
| 25 | for (unsigned i = 0; i != numargs; ++i) |
| 26 | Args[i] = elist[i]; |
| 27 | } |