Daniel Dunbar | d77aac9 | 2009-03-04 17:10:42 +0000 | [diff] [blame] | 1 | //===--- ArgList.cpp - Argument List Management -------------------------*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "clang/Driver/ArgList.h" |
| 11 | #include "clang/Driver/Arg.h" |
| 12 | |
| 13 | using namespace clang::driver; |
| 14 | |
| 15 | ArgList::ArgList(const char **ArgBegin, const char **ArgEnd) { |
| 16 | ArgStrings.append(ArgBegin, ArgEnd); |
| 17 | } |
| 18 | |
| 19 | ArgList::~ArgList() { |
| 20 | for (iterator it = begin(), ie = end(); it != ie; ++ie) |
| 21 | delete *it; |
| 22 | } |